Skip to content

Commit

Permalink
Sonuva... transpose the normal transform matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
rherriman committed Jan 19, 2024
1 parent 239df5c commit 6e32afc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/ModernOpenGLRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ void ModernOpenGLRenderer::SetTransforms(const CBSPPart &part) {

worldShader->Use();
worldShader->SetMat4("modelview", mv);
worldShader->SetMat3("normalTransform", normalMat);
worldShader->SetMat3("normalTransform", normalMat, true);

hudShader->Use();
hudShader->SetMat4("modelview", mv);
Expand Down

0 comments on commit 6e32afc

Please sign in to comment.