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

Function projectObject

Three.js/js/Three59dev.js:7290–7318  ·  view source on GitHub ↗
( object )

Source from the content-addressed store, hash-verified

7288 };
7289
7290 var projectObject = function ( object ) {
7291
7292 if ( object.visible === false ) return;
7293
7294 if ( object instanceof THREE.Light ) {
7295
7296 _renderData.lights.push( object );
7297
7298 } else if ( object instanceof THREE.Mesh || object instanceof THREE.Line ) {
7299
7300 if ( object.frustumCulled === false || _frustum.intersectsObject( object ) === true ) {
7301
7302 _renderData.objects.push( getObject( object ) );
7303
7304 }
7305
7306 } else if ( object instanceof THREE.Sprite || object instanceof THREE.Particle ) {
7307
7308 _renderData.sprites.push( getObject( object ) );
7309
7310 }
7311
7312 for ( var i = 0, l = object.children.length; i < l; i ++ ) {
7313
7314 projectObject( object.children[ i ] );
7315
7316 }
7317
7318 };
7319
7320 var projectGraph = function ( root, sortObjects ) {
7321

Callers 1

projectGraphFunction · 0.70

Calls 1

getObjectFunction · 0.70

Tested by

no test coverage detected