Преглед на файлове

Update PBRLightingUtils.glsllib

Ryan McDonough преди 7 месеца
родител
ревизия
9f6a16833a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      jme3-core/src/main/resources/Common/ShaderLib/module/pbrlighting/PBRLightingUtils.glsllib

+ 1 - 1
jme3-core/src/main/resources/Common/ShaderLib/module/pbrlighting/PBRLightingUtils.glsllib

@@ -339,7 +339,7 @@
             #endif
             surface.normal = normalize(tbnMat * normal);
         #else 
-            surface.normal = normal;
+            surface.normal = surface.geometryNormal;
         #endif
         
         //spec gloss tex reads: