Files
apt-nl-map/static/Magic4/js/three.js-dev/examples/jsm/nodes/inputs/ScreenNode.js
2024-12-04 10:21:04 +08:00

29 lines
443 B
JavaScript

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 };