ScreenNode.js 653 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * @author sunag / http://www.sunag.com.br/
  3. */
  4. import { InputNode } from '../core/InputNode.js';
  5. import { TextureNode } from './TextureNode.js';
  6. function ScreenNode( coord ) {
  7. TextureNode.call( this, undefined, coord );
  8. };
  9. ScreenNode.prototype = Object.create( TextureNode.prototype );
  10. ScreenNode.prototype.constructor = ScreenNode;
  11. ScreenNode.prototype.nodeType = "Screen";
  12. ScreenNode.prototype.isUnique = function () {
  13. return true;
  14. };
  15. ScreenNode.prototype.getTexture = function ( builder, output ) {
  16. return InputNode.prototype.generate.call( this, builder, output, this.getUuid(), 't', 'renderTexture' );
  17. };
  18. export { ScreenNode };