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

11 lines
100 B
Go

package main
func Foo() vec2 {
x := true
if x {
return vec2(0)
} else {
return vec2(1)
}
}