|
@@ -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 );
|