Skip to content

Commit 337696b

Browse files
authored
Update PBRLightingUtils.glsllib
1 parent a9e5734 commit 337696b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@
266266
#if defined(NORMALMAP) || defined(PARALLAXMAP)
267267
vec3 tan = normalize(wTangent.xyz);
268268
mat3 tbnMat = mat3(tan, wTangent.w * cross( surface.geometryNormal, tan), surface.geometryNormal);
269+
surface.tbnMat = tbnMat;
269270
#endif
270271

271272
vec2 newTexCoord;
@@ -589,4 +590,4 @@
589590
#endif
590591

591592

592-
#endif
593+
#endif

0 commit comments

Comments
 (0)