PointUVNode.js 281 B

123456789101112131415161718192021
  1. import Node from '../core/Node.js';
  2. class PointUVNode extends Node {
  3. constructor() {
  4. super( 'vec2' );
  5. }
  6. generate( /*builder*/ ) {
  7. return 'vec2( gl_PointCoord.x, 1.0 - gl_PointCoord.y )';
  8. }
  9. }
  10. PointUVNode.prototype.isPointUVNode = true;
  11. export default PointUVNode;