mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
24 lines
453 B
Text
24 lines
453 B
Text
uniform vec3 uniVal;
|
|
void main ()
|
|
{
|
|
if ((uniVal.x > 1.0)) {
|
|
gl_FragData[0] = vec4(0.0, 0.0, 0.0, 0.0);
|
|
} else {
|
|
float x_1;
|
|
x_1 = (0.001 - uniVal.x);
|
|
if ((x_1 < 0.0)) {
|
|
discard;
|
|
};
|
|
float x_2;
|
|
x_2 = (0.001 - uniVal.y);
|
|
if ((x_2 < 0.0)) {
|
|
discard;
|
|
};
|
|
gl_FragData[0] = vec4(1.0, 1.0, 1.0, 1.0);
|
|
};
|
|
}
|
|
|
|
|
|
// stats: 7 alu 2 tex 3 flow
|
|
// uniforms: 1 (total size: 0)
|
|
// #0: uniVal (high float) 3x1 [-1]
|