ScreenNode.js 542 B

123456789101112131415161718192021222324
  1. /**
  2. * @author sunag / http://www.sunag.com.br/
  3. */
  4. THREE.ScreenNode = function( coord ) {
  5. THREE.TextureNode.call( this, undefined, coord );
  6. };
  7. THREE.ScreenNode.prototype = Object.create( THREE.TextureNode.prototype );
  8. THREE.ScreenNode.prototype.constructor = THREE.ScreenNode;
  9. THREE.ScreenNode.prototype.isUnique = function() {
  10. return true;
  11. };
  12. THREE.ScreenNode.prototype.getTexture = function( builder, output ) {
  13. return THREE.InputNode.prototype.generate.call( this, builder, output, this.getUuid(), 't', 'renderTexture' );
  14. };