Benjamin Guignabert 6 gadi atpakaļ
vecāks
revīzija
c21822f997

+ 1 - 1
src/Shaders/ShadersInclude/pbrFragmentSamplersDeclaration.fx

@@ -204,13 +204,13 @@
             float solidAngleSample = 1.0 / (float(NUM_SAMPLES) * weights[i]);
             float solidAngleSample = 1.0 / (float(NUM_SAMPLES) * weights[i]);
             float lod = 0.5 * log2(solidAngleSample/solidAngleTexel) + 1.;
             float lod = 0.5 * log2(solidAngleSample/solidAngleTexel) + 1.;
             if (vDotD > 0.) {
             if (vDotD > 0.) {
+                // gamma correction needed ?
                 color += textureCubeLodEXT(sampler, v, lod).xyz * vDotD;
                 color += textureCubeLodEXT(sampler, v, lod).xyz * vDotD;
                 totalWeight += vDotD;            
                 totalWeight += vDotD;            
             }
             }
         }
         }
 
 
         color /= totalWeight;
         color /= totalWeight;
-
         return vec4(color, 1.0);
         return vec4(color, 1.0);
     }
     }