ScreenNode.js 443 B

12345678910111213141516171819202122232425262728
  1. import { InputNode } from '../core/InputNode.js';
  2. import { TextureNode } from './TextureNode.js';
  3. class ScreenNode extends TextureNode {
  4. constructor( uv ) {
  5. super( undefined, uv );
  6. }
  7. getUnique() {
  8. return true;
  9. }
  10. getTexture( builder, output ) {
  11. return InputNode.prototype.generate.call( this, builder, output, this.getUuid(), 't', 'renderTexture' );
  12. }
  13. }
  14. ScreenNode.prototype.nodeType = 'Screen';
  15. export { ScreenNode };