1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 02:39:46 +02:00
Oinktube/node_modules/three/examples/jsm/nodes/inputs/ScreenNode.js
2023-12-11 11:59:56 -03:00

26 lines
594 B
JavaScript

import { InputNode } from '../core/InputNode.js';
import { TextureNode } from './TextureNode.js';
function ScreenNode( uv ) {
TextureNode.call( this, undefined, uv );
}
ScreenNode.prototype = Object.create( TextureNode.prototype );
ScreenNode.prototype.constructor = ScreenNode;
ScreenNode.prototype.nodeType = 'Screen';
ScreenNode.prototype.getUnique = function () {
return true;
};
ScreenNode.prototype.getTexture = function ( builder, output ) {
return InputNode.prototype.generate.call( this, builder, output, this.getUuid(), 't', 'renderTexture' );
};
export { ScreenNode };