mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
35 lines
503 B
Text
35 lines
503 B
Text
uniform float mode;
|
|
float func (
|
|
in float c_1
|
|
)
|
|
{
|
|
if ((mode == 2.0)) {
|
|
return c_1;
|
|
};
|
|
if ((mode == 3.0)) {
|
|
discard;
|
|
};
|
|
if ((mode == 10.0)) {
|
|
float tmpvar_2;
|
|
tmpvar_2 = 0.1;
|
|
c_1 = tmpvar_2;
|
|
};
|
|
return c_1;
|
|
}
|
|
|
|
void main ()
|
|
{
|
|
vec4 c_3;
|
|
vec4 tmpvar_4;
|
|
tmpvar_4 = gl_FragCoord;
|
|
c_3 = tmpvar_4;
|
|
float tmpvar_5;
|
|
tmpvar_5 = func (c_3.x);
|
|
float tmpvar_6;
|
|
tmpvar_6 = tmpvar_5;
|
|
c_3.x = tmpvar_6;
|
|
vec4 tmpvar_7;
|
|
tmpvar_7 = c_3;
|
|
gl_FragColor = tmpvar_7;
|
|
}
|
|
|