UNPKG

three

Version:

JavaScript 3D library

26 lines (15 loc) 593 B
/** * @author sunag / http://www.sunag.com.br/ */ THREE.ScreenNode = function ( coord ) { THREE.TextureNode.call( this, undefined, coord ); }; THREE.ScreenNode.prototype = Object.create( THREE.TextureNode.prototype ); THREE.ScreenNode.prototype.constructor = THREE.ScreenNode; THREE.ScreenNode.prototype.nodeType = "Screen"; THREE.ScreenNode.prototype.isUnique = function () { return true; }; THREE.ScreenNode.prototype.getTexture = function ( builder, output ) { return THREE.InputNode.prototype.generate.call( this, builder, output, this.getUuid(), 't', 'renderTexture' ); };