mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
31 lines
646 B
JavaScript
31 lines
646 B
JavaScript
/**
|
|
* @author sunag / http://www.sunag.com.br/
|
|
*/
|
|
|
|
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.isUnique = function () {
|
|
|
|
return true;
|
|
|
|
};
|
|
|
|
ScreenNode.prototype.getTexture = function ( builder, output ) {
|
|
|
|
return InputNode.prototype.generate.call( this, builder, output, this.getUuid(), 't', 'renderTexture' );
|
|
|
|
};
|
|
|
|
export { ScreenNode };
|