bgfx/3rdparty/glsl-optimizer/tests/fragment/builtin-vars-inES3.txt

15 lines
204 B
Text
Raw Normal View History

2014-10-11 15:32:43 -04:00
#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;
}