Переглянути джерело

Update PBRLightingParamReads.glsllib

remove unnecessary assignment of norm, as normal will already = norm if a normalMap is not assigned, and norm isn't used anywhere else in this glslib so no need to pass it in
Ryan McDonough 1 рік тому
батько
коміт
02156751c2

+ 0 - 2
jme3-core/src/main/resources/Common/ShaderLib/PBRLightingParamReads.glsllib

@@ -137,8 +137,6 @@ void readMatParamsAndTextures(in mat3 tbnMat, in vec3 vViewDir, inout vec4 albed
         #endif
         normal = normalize(tbnMat * normal);
         //normal = normalize(normal * inverse(tbnMat));
-    #else
-        normal = norm;
     #endif
     
     //spec gloss tex reads: