NodeVector4.js 436 B

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