提交 53cc6513 编写于 作者: M Mr.doob

Merge pull request #6295 from bhouston/log2_not_Supported

Remove unnecessary usage of Math.log2, it is not supported in IE.
......@@ -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.
先完成此消息的编辑!
想要评论请 注册