webvr js meetup initial commit
This commit is contained in:
16
node_modules/three/examples/js/nodes/inputs/Vector2Node.js
generated
vendored
Normal file
16
node_modules/three/examples/js/nodes/inputs/Vector2Node.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* @author sunag / http://www.sunag.com.br/
|
||||
*/
|
||||
|
||||
THREE.Vector2Node = function( x, y ) {
|
||||
|
||||
THREE.InputNode.call( this, 'v2' );
|
||||
|
||||
this.value = new THREE.Vector2( x, y );
|
||||
|
||||
};
|
||||
|
||||
THREE.Vector2Node.prototype = Object.create( THREE.InputNode.prototype );
|
||||
THREE.Vector2Node.prototype.constructor = THREE.Vector2Node;
|
||||
|
||||
THREE.NodeMaterial.addShortcuts( THREE.Vector2Node.prototype, 'value', [ 'x', 'y' ] );
|
||||
Reference in New Issue
Block a user