提交 36a2d325 编写于 作者: T Tristan Valcke

Remove unnecessary comma in AdaptiveToneMappingPass

上级 68350230
......@@ -44,12 +44,12 @@ THREE.AdaptiveToneMappingPass = function ( adaptive, resolution ) {
uniforms: THREE.UniformsUtils.clone( THREE.LuminosityShader.uniforms ),
vertexShader: THREE.LuminosityShader.vertexShader,
fragmentShader: THREE.LuminosityShader.fragmentShader,
blending: THREE.NoBlending,
blending: THREE.NoBlending
} );
this.adaptLuminanceShader = {
defines: {
"MIP_LEVEL_1X1" : ( Math.log( this.resolution ) / Math.log( 2.0 ) ).toFixed( 1 ),
"MIP_LEVEL_1X1" : ( Math.log( this.resolution ) / Math.log( 2.0 ) ).toFixed( 1 )
},
uniforms: {
"lastLum": { value: null },
......@@ -91,7 +91,7 @@ THREE.AdaptiveToneMappingPass = function ( adaptive, resolution ) {
"float fAdaptedLum = fLastLum + (fCurrentLum - fLastLum) * (1.0 - exp(-delta * tau));",
// "fAdaptedLum = sqrt(fAdaptedLum);",
"gl_FragColor = vec4( vec3( fAdaptedLum ), 1.0 );",
"}",
"}"
].join( '\n' )
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册