bgfx/3rdparty/glsl-optimizer/tests/fragment/opt-ifs-in.txt

12 lines
159 B
Plaintext
Raw Normal View History

2014-02-11 11:06:13 +04:00
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;
}