webvr js meetup initial commit
This commit is contained in:
24
node_modules/three/examples/js/nodes/inputs/ScreenNode.js
generated
vendored
Normal file
24
node_modules/three/examples/js/nodes/inputs/ScreenNode.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* @author sunag / http://www.sunag.com.br/
|
||||
*/
|
||||
|
||||
THREE.ScreenNode = function( coord ) {
|
||||
|
||||
THREE.TextureNode.call( this, undefined, coord );
|
||||
|
||||
};
|
||||
|
||||
THREE.ScreenNode.prototype = Object.create( THREE.TextureNode.prototype );
|
||||
THREE.ScreenNode.prototype.constructor = THREE.ScreenNode;
|
||||
|
||||
THREE.ScreenNode.prototype.isUnique = function() {
|
||||
|
||||
return true;
|
||||
|
||||
};
|
||||
|
||||
THREE.ScreenNode.prototype.getTexture = function( builder, output ) {
|
||||
|
||||
return THREE.InputNode.prototype.generate.call( this, builder, output, this.getUuid(), 't', 'renderTexture' );
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user