Add a ModelViewProjectionMatrix uniform
This commit is contained in:
parent
afcc8337de
commit
05c309da67
2 changed files with 7 additions and 5 deletions
|
@ -418,11 +418,12 @@ void GLShader::resolveLocations()
|
|||
if (mLocationsResolved)
|
||||
return;
|
||||
|
||||
mMatrixLocation[TextureMatrix] = uniformLocation("textureMatrix");
|
||||
mMatrixLocation[ProjectionMatrix] = uniformLocation("projection");
|
||||
mMatrixLocation[ModelViewMatrix] = uniformLocation("modelview");
|
||||
mMatrixLocation[WindowTransformation] = uniformLocation("windowTransformation");
|
||||
mMatrixLocation[ScreenTransformation] = uniformLocation("screenTransformation");
|
||||
mMatrixLocation[TextureMatrix] = uniformLocation("textureMatrix");
|
||||
mMatrixLocation[ProjectionMatrix] = uniformLocation("projection");
|
||||
mMatrixLocation[ModelViewMatrix] = uniformLocation("modelview");
|
||||
mMatrixLocation[ModelViewProjectionMatrix] = uniformLocation("modelViewProjectionMatrix");
|
||||
mMatrixLocation[WindowTransformation] = uniformLocation("windowTransformation");
|
||||
mMatrixLocation[ScreenTransformation] = uniformLocation("screenTransformation");
|
||||
|
||||
mVec2Location[Offset] = uniformLocation("offset");
|
||||
|
||||
|
|
|
@ -133,6 +133,7 @@ public:
|
|||
TextureMatrix = 0,
|
||||
ProjectionMatrix,
|
||||
ModelViewMatrix,
|
||||
ModelViewProjectionMatrix,
|
||||
WindowTransformation,
|
||||
ScreenTransformation,
|
||||
MatrixCount
|
||||
|
|
Loading…
Reference in a new issue