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