Vector4Node.js 422 B

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