瀏覽代碼

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
Ryan McDonough 7 月之前
父節點
當前提交
5dd486954f

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

@@ -338,8 +338,6 @@
                 vec3 normal = normalize((normalHeight.xyz * vec3(2.0, NORMAL_TYPE * 2.0, 2.0) - vec3(1.0, NORMAL_TYPE * 1.0, 1.0)));
             #endif
             surface.normal = normalize(tbnMat * normal);
-        #else 
-            surface.normal = normal;
         #endif
         
         //spec gloss tex reads: