Vector2Node.js 283 B

123456789101112131415161718
  1. import InputNode from '../core/InputNode.js';
  2. import { Vector2 } from 'three';
  3. class Vector2Node extends InputNode {
  4. constructor( value = new Vector2() ) {
  5. super( 'vec2' );
  6. this.value = value;
  7. }
  8. }
  9. Vector2Node.prototype.isVector2Node = true;
  10. export default Vector2Node;