Skip to content

Commit 5dd4869

Browse files
authored
Removed undeclared normal variable that is no longer needed
caused a crash trying to assign a non existent variable. but it isn't needed anymore anyways since surface.geometryNormal already is set to = norm by default now
1 parent 337696b commit 5dd4869

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,6 @@
338338
vec3 normal = normalize((normalHeight.xyz * vec3(2.0, NORMAL_TYPE * 2.0, 2.0) - vec3(1.0, NORMAL_TYPE * 1.0, 1.0)));
339339
#endif
340340
surface.normal = normalize(tbnMat * normal);
341-
#else
342-
surface.normal = normal;
343341
#endif
344342

345343
//spec gloss tex reads:

0 commit comments

Comments
 (0)