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

WebGLRenderer: Frustum cull everything.

上级 c96cb606
......@@ -10,7 +10,6 @@ THREE.ParticleSystem = function ( geometry, material ) {
this.material = material !== undefined ? material : new THREE.ParticleSystemMaterial( { color: Math.random() * 0xffffff } );
this.sortParticles = false;
this.frustumCulled = false;
};
......
......@@ -3297,7 +3297,7 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( object.visible ) {
if ( ! ( object instanceof THREE.Mesh || object instanceof THREE.ParticleSystem ) || ! ( object.frustumCulled ) || _frustum.intersectsObject( object ) ) {
if ( object.frustumCulled === false || _frustum.intersectsObject( object ) === true ) {
setupMatrices( object, camera );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册