mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-04 21:31:11 -05:00
14 lines
284 B
Text
14 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;
|
||
|
}
|