Vector3Node.js 430 B

1234567891011121314151617
  1. /**
  2. * @author sunag / http://www.sunag.com.br/
  3. */
  4. THREE.Vector3Node = function( x, y, z ) {
  5. THREE.InputNode.call( this, 'v3' );
  6. this.type = 'v3';
  7. this.value = new THREE.Vector3( x, y, z );
  8. };
  9. THREE.Vector3Node.prototype = Object.create( THREE.InputNode.prototype );
  10. THREE.Vector3Node.prototype.constructor = THREE.Vector3Node;
  11. THREE.NodeMaterial.addShortcuts( THREE.Vector3Node.prototype, 'value', [ 'x', 'y', 'z' ] );