MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / projectObject

Function projectObject

7DFPS/js/Three.js:7673–7701  ·  view source on GitHub ↗
( object )

Source from the content-addressed store, hash-verified

7671 };
7672
7673 var projectObject = function ( object ) {
7674
7675 if ( object.visible === false ) return;
7676
7677 if ( object instanceof THREE.Light ) {
7678
7679 _renderData.lights.push( object );
7680
7681 } else if ( object instanceof THREE.Mesh || object instanceof THREE.Line ) {
7682
7683 if ( object.frustumCulled === false || _frustum.intersectsObject( object ) === true ) {
7684
7685 _renderData.objects.push( getObject( object ) );
7686
7687 }
7688
7689 } else if ( object instanceof THREE.Sprite || object instanceof THREE.Particle ) {
7690
7691 _renderData.sprites.push( getObject( object ) );
7692
7693 }
7694
7695 for ( var i = 0, l = object.children.length; i < l; i ++ ) {
7696
7697 projectObject( object.children[ i ] );
7698
7699 }
7700
7701 };
7702
7703 var projectGraph = function ( root, sortObjects ) {
7704

Callers 1

projectGraphFunction · 0.70

Calls 1

getObjectFunction · 0.70

Tested by

no test coverage detected