mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 20:07:01 -05:00
15 lines
204 B
Text
15 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;
|
||
|
}
|