@@ -349,7 +349,7 @@ THREE.Projector = function () {
var material = object.material;
- if ( material === null || material.visible === false ) return;
+ if ( material.visible === false ) return;
if ( object.frustumCulled === false || _frustum.intersectsObject( object ) === true ) {
@@ -1727,7 +1727,7 @@ THREE.WebGLRenderer = function ( parameters ) {
material = materials[ j ];
- if ( material === null || material.visible === false ) continue;
+ if ( material.visible === false ) continue;
_this.renderBufferDirect( camera, lights, fog, geometry, material, object );
@@ -217,7 +217,7 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
objectMaterial = object.material.materials[ 0 ];
- if ( objectMaterial === null || objectMaterial.visible === false ) continue;
+ if ( objectMaterial.visible === false ) continue;
}