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

Update PBRLightingUtils.glsllib

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

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

@@ -266,6 +266,7 @@
         #if defined(NORMALMAP) || defined(PARALLAXMAP)
             vec3 tan = normalize(wTangent.xyz);
             mat3 tbnMat = mat3(tan, wTangent.w * cross( surface.geometryNormal, tan), surface.geometryNormal);
+            surface.tbnMat = tbnMat;
         #endif
         
         vec2 newTexCoord;
@@ -589,4 +590,4 @@
 #endif
 
 
-#endif
+#endif