提交 ff54b02b 编写于 作者: M Max Strater

Fixing: Sprites aren't affected by FogExp2 (#6444)

See issue #6444. Solved by WestLangley.
上级 a2b09461
......@@ -324,7 +324,7 @@ THREE.SpritePlugin = function ( renderer, sprites ) {
'} else {',
'const float LOG2 = 1.442695;',
'float fogFactor = exp2( - fogDensity * fogDensity * depth * depth * LOG2 );',
'fogFactor = exp2( - fogDensity * fogDensity * depth * depth * LOG2 );',
'fogFactor = 1.0 - clamp( fogFactor, 0.0, 1.0 );',
'}',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册