PointUVNode.js 281 B

12345678910111213141516171819202122
  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;