mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
29 lines
503 B
Text
29 lines
503 B
Text
uniform float mode;
|
|
void main ()
|
|
{
|
|
vec4 c_1;
|
|
c_1 = gl_FragCoord;
|
|
float c_2;
|
|
c_2 = gl_FragCoord.x;
|
|
float tmpvar_3;
|
|
if ((mode == 2.0)) {
|
|
tmpvar_3 = c_2;
|
|
} else {
|
|
if ((mode == 3.0)) {
|
|
discard;
|
|
};
|
|
if ((mode == 10.0)) {
|
|
c_2 = 0.1;
|
|
};
|
|
tmpvar_3 = c_2;
|
|
};
|
|
c_1.x = tmpvar_3;
|
|
gl_FragColor = c_1;
|
|
}
|
|
|
|
|
|
// stats: 4 alu 1 tex 3 flow
|
|
// inputs: 1
|
|
// #0: gl_FragCoord (high float) 4x1 [-1] loc 0
|
|
// uniforms: 1 (total size: 0)
|
|
// #0: mode (high float) 1x1 [-1]
|