mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-04 21:31:11 -05:00
12 lines
159 B
Text
12 lines
159 B
Text
|
void main() {
|
||
|
vec4 c = vec4(0.0);
|
||
|
|
||
|
// nested ifs
|
||
|
if (gl_FragCoord.x > 0.5) {
|
||
|
if (gl_FragCoord.y > 0.5) {
|
||
|
c = vec4(0.5);
|
||
|
}
|
||
|
}
|
||
|
gl_FragColor = c;
|
||
|
}
|