Fixed matrices not being updated in the shader
Former-commit-id: 8eb208b656bec0d63163d2a00768a4216979a8b0
This commit is contained in:
parent
29755989fd
commit
07aa5d095c
|
|
@ -707,18 +707,20 @@ void NzRenderer::SetMatrix(nzMatrixType type, const NzMatrix4f& matrix)
|
|||
#endif
|
||||
|
||||
s_matrix[type] = matrix;
|
||||
s_matrixUpdated[type] = false;
|
||||
|
||||
// Invalidation des combinaisons
|
||||
switch (type)
|
||||
if (type == nzMatrixType_View)
|
||||
{
|
||||
case nzMatrixType_View:
|
||||
case nzMatrixType_World:
|
||||
s_matrixUpdated[nzMatrixCombination_WorldView] = false;
|
||||
case nzMatrixType_Projection:
|
||||
s_matrixUpdated[nzMatrixCombination_WorldViewProj] = false;
|
||||
s_matrixUpdated[nzMatrixCombination_ViewProj] = false;
|
||||
break;
|
||||
s_matrixUpdated[nzMatrixCombination_ViewProj] = false;
|
||||
s_matrixUpdated[nzMatrixCombination_WorldView] = false;
|
||||
}
|
||||
else if (type == nzMatrixType_Projection)
|
||||
s_matrixUpdated[nzMatrixCombination_ViewProj] = false;
|
||||
else if (type == nzMatrixType_World)
|
||||
s_matrixUpdated[nzMatrixCombination_WorldView] = false;
|
||||
|
||||
s_matrixUpdated[nzMatrixCombination_WorldViewProj] = false; // Toujours invalidée
|
||||
}
|
||||
|
||||
void NzRenderer::SetPointSize(float size)
|
||||
|
|
|
|||
Loading…
Reference in New Issue