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

Function projectObject

Three.js/js/Three62.js:7836–7864  ·  view source on GitHub ↗
( object )

Source from the content-addressed store, hash-verified

7834 };
7835
7836 var projectObject = function ( object ) {
7837
7838 if ( object.visible === false ) return;
7839
7840 if ( object instanceof THREE.Light ) {
7841
7842 _renderData.lights.push( object );
7843
7844 } else if ( object instanceof THREE.Mesh || object instanceof THREE.Line ) {
7845
7846 if ( object.frustumCulled === false || _frustum.intersectsObject( object ) === true ) {
7847
7848 _renderData.objects.push( getObject( object ) );
7849
7850 }
7851
7852 } else if ( object instanceof THREE.Sprite ) {
7853
7854 _renderData.sprites.push( getObject( object ) );
7855
7856 }
7857
7858 for ( var i = 0, l = object.children.length; i < l; i ++ ) {
7859
7860 projectObject( object.children[ i ] );
7861
7862 }
7863
7864 };
7865
7866 var projectGraph = function ( root, sortObjects ) {
7867

Callers 1

projectGraphFunction · 0.70

Calls 1

getObjectFunction · 0.70

Tested by

no test coverage detected