提交 29eebde8 编写于 作者: B Ben Houston

Remove unnecessary usage of Math.log2, not supported in IE.

上级 705336f2
......@@ -47,7 +47,7 @@ THREE.AdaptiveToneMappingPass = function ( adaptive, resolution ) {
this.adaptLuminanceShader = {
defines: {
"MIP_LEVEL_1X1" : Math.log2( this.resolution ).toFixed(1),
"MIP_LEVEL_1X1" : ( Math.log( this.resolution ) / Math.log( 2.0 ) ).toFixed(1),
},
uniforms: {
"lastLum": { type: "t", value: null },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册