瀏覽代碼

Update PBRLightingUtils.glsllib

Ryan McDonough 7 月之前
父節點
當前提交
337696b7f4

+ 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