static
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { InputNode } from '../core/InputNode.js';
|
||||
import { TextureNode } from './TextureNode.js';
|
||||
|
||||
class ScreenNode extends TextureNode {
|
||||
|
||||
constructor( uv ) {
|
||||
|
||||
super( undefined, uv );
|
||||
|
||||
}
|
||||
|
||||
getUnique() {
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
getTexture( builder, output ) {
|
||||
|
||||
return InputNode.prototype.generate.call( this, builder, output, this.getUuid(), 't', 'renderTexture' );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ScreenNode.prototype.nodeType = 'Screen';
|
||||
|
||||
export { ScreenNode };
|
||||
Reference in New Issue
Block a user