mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 11:05:36 -05:00
13 lines
284 B
Text
13 lines
284 B
Text
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;
|
|
}
|