bgfx/3rdparty/glsl-optimizer/tests/fragment/float-literals-in.txt
2015-04-02 23:30:48 -07:00

21 lines
277 B
Text

varying vec2 uv;
void main()
{
vec4 c = vec4(0.0);
float a, b;
a = uv.y * 1.111111e+6;
b = uv.y * 1.111110e+6;
c.x = a-b;
a = uv.y * 1.23456789;
b = uv.y * 1.23456765;
c.y = a-b;
a = uv.y * -1.234567e-6;
b = uv.y * -1.234565e-6;
c.z = a-b;
gl_FragColor = c;
}