bgfx/3rdparty/glsl-optimizer/tests/fragment/prec-treegrafting-inES.txt
2012-10-07 20:41:18 -07:00

14 lines
284 B
Plaintext

uniform mediump float med_a;
uniform mediump float med_b;
uniform lowp float low_c;
void main()
{
// must be computed at mediump since some args are mediump
lowp float t = (med_a + low_c / med_b);
// computed at lowp
lowp vec4 c = clamp(vec4(t), 0.0, 1.0);
gl_FragColor = c;
}