Browse Source

shader: Fix p3d_NormalMatrix regression

rdb 1 year ago
parent
commit
9ed50559ec
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/display/shaderInputBinding_impls.cxx

+ 1 - 0
panda/src/display/shaderInputBinding_impls.cxx

@@ -2347,6 +2347,7 @@ make_binding_glsl(const InternalName *name, const ShaderType *type) {
       }
       else if (matrix_name == "NormalMatrix") {
         // This is really the upper 3x3 of the ModelViewMatrixInverseTranspose.
+        transpose = !transpose;
         part[0] = inverse ? Shader::SM_model_to_apiview
                           : Shader::SM_apiview_to_model;