Browse Source

WebGLRenderer: These may avoid light to be black but also create hard to understand webgl errors.

Mr.doob 11 years ago
parent
commit
ccc71b5865
1 changed files with 0 additions and 10 deletions
  1. 0 10
      src/renderers/WebGLRenderer.js

+ 0 - 10
src/renderers/WebGLRenderer.js

@@ -5065,11 +5065,6 @@ THREE.WebGLRenderer = function ( parameters ) {
 				_direction.sub( _vector3 );
 				_direction.normalize();
 
-				// skip lights with undefined direction
-				// these create troubles in OpenGL (making pixel black)
-
-				if ( _direction.x === 0 && _direction.y === 0 && _direction.z === 0 ) continue;
-
 				dirOffset = dirLength * 3;
 
 				dirPositions[ dirOffset ]     = _direction.x;
@@ -5165,11 +5160,6 @@ THREE.WebGLRenderer = function ( parameters ) {
 				_direction.setFromMatrixPosition( light.matrixWorld );
 				_direction.normalize();
 
-				// skip lights with undefined direction
-				// these create troubles in OpenGL (making pixel black)
-
-				if ( _direction.x === 0 && _direction.y === 0 && _direction.z === 0 ) continue;
-
 				hemiOffset = hemiLength * 3;
 
 				hemiPositions[ hemiOffset ]     = _direction.x;