|
@@ -27,10 +27,11 @@ RoughnessToBlinnExponentNode.Nodes = (function() {
|
|
|
// float envMapWidth = pow( 2.0, maxMIPLevelScalar );
|
|
|
// float desiredMIPLevel = log2( envMapWidth * sqrt( 3.0 ) ) - 0.5 * log2( pow2( blinnShininessExponent ) + 1.0 );
|
|
|
|
|
|
- " 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 );",
|
|
|
+
|
|
|
"}"
|
|
|
].join( "\n" ) );
|
|
|
|