Преглед на файлове

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
променени са 1 файла, в които са добавени 0 реда и са изтрити 2 реда
  1. 0 2
      jme3-core/src/main/resources/Common/ShaderLib/PBRLightingParamReads.glsllib

+ 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: