2
0
Эх сурвалжийг харах

shader: Fix p3d_NormalMatrix regression

rdb 1 жил өмнө
parent
commit
9ed50559ec

+ 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;