#version 300 es out mediump vec4 _fragData; in mediump vec4 uv; void main() { mediump vec4 c; c = uv; c += gl_FragCoord; c.x += gl_FrontFacing ? 1.0 : 0.0; c.xy += gl_PointCoord; _fragData = c; }