fireball/lib/extras/objects/ImmediateRenderObject.js

23 lines
505 B
JavaScript
Raw Normal View History

2018-12-25 13:59:22 +00:00
import { Object3D } from '../../core/Object3D.js';
/**
* @author alteredq / http://alteredqualia.com/
*/
function ImmediateRenderObject( material ) {
Object3D.call( this );
this.material = material;
this.render = function ( /* renderCallback */ ) {};
}
ImmediateRenderObject.prototype = Object.create( Object3D.prototype );
ImmediateRenderObject.prototype.constructor = ImmediateRenderObject;
ImmediateRenderObject.prototype.isImmediateRenderObject = true;
export { ImmediateRenderObject };