MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / projectObject

Function projectObject

Three.js/js/Three62dev.js:7796–7824  ·  view source on GitHub ↗
( object )

Source from the content-addressed store, hash-verified

7794 };
7795
7796 var projectObject = function ( object ) {
7797
7798 if ( object.visible === false ) return;
7799
7800 if ( object instanceof THREE.Light ) {
7801
7802 _renderData.lights.push( object );
7803
7804 } else if ( object instanceof THREE.Mesh || object instanceof THREE.Line ) {
7805
7806 if ( object.frustumCulled === false || _frustum.intersectsObject( object ) === true ) {
7807
7808 _renderData.objects.push( getObject( object ) );
7809
7810 }
7811
7812 } else if ( object instanceof THREE.Sprite || object instanceof THREE.Particle ) {
7813
7814 _renderData.sprites.push( getObject( object ) );
7815
7816 }
7817
7818 for ( var i = 0, l = object.children.length; i < l; i ++ ) {
7819
7820 projectObject( object.children[ i ] );
7821
7822 }
7823
7824 };
7825
7826 var projectGraph = function ( root, sortObjects ) {
7827

Callers 1

projectGraphFunction · 0.70

Calls 1

getObjectFunction · 0.70

Tested by

no test coverage detected