提交 a2628940 编写于 作者: M Mr.doob

WebGLRenderer/Projector: Removed null handling.

上级 7182b809
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册