Browse Source

Merge pull request #6445 from mstrater/patch-2

Fixing: Sprites aren't affected by FogExp2 (#6444)
Ricardo Cabello 10 years ago
parent
commit
bbf31d588c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderers/webgl/plugins/SpritePlugin.js

+ 1 - 1
src/renderers/webgl/plugins/SpritePlugin.js

@@ -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 );',
 
 					'}',