mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
14 lines
204 B
Text
14 lines
204 B
Text
#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;
|
|
}
|