2
0
Эх сурвалжийг харах

Merge pull request #12267 from stevesan/patch-1

Fairly sure this should be add not subtract :)
Mr.doob 7 жил өмнө
parent
commit
1a00c357f0

+ 1 - 1
src/renderers/shaders/ShaderChunk/lights_pars.glsl

@@ -218,7 +218,7 @@ vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {
 		//float desiredMIPLevel = log2( envMapWidth * sqrt( 3.0 ) ) - 0.5 * log2( pow2( blinnShininessExponent ) + 1.0 );
 
 		float maxMIPLevelScalar = float( maxMIPLevel );
-		float desiredMIPLevel = maxMIPLevelScalar - 0.79248 - 0.5 * log2( pow2( blinnShininessExponent ) + 1.0 );
+		float desiredMIPLevel = maxMIPLevelScalar + 0.79248 - 0.5 * log2( pow2( blinnShininessExponent ) + 1.0 );
 
 		// clamp to allowable LOD ranges.
 		return clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );