ebiten/internal/shader/testdata/if_else.expected.vs
Hajime Hoshi 380b7382ac shader: Add 'if'
Updates #1230
2020-07-05 02:33:49 +09:00

12 lines
135 B
GLSL

void F0(out vec2 l0) {
bool l1 = false;
l1 = true;
if (l1) {
l0 = vec2(0.0);
return;
} else {
l0 = vec2(1.0);
return;
}
}