if else if else if if else if else
This commit is contained in:
11
test/nested_if.ink
Normal file
11
test/nested_if.ink
Normal file
@@ -0,0 +1,11 @@
|
||||
vertex main :: (pos : float3 @position) -> float4 @position {
|
||||
if pos.x > 100 {
|
||||
if pos.x > 50 {
|
||||
return float4(pos, 1.0);
|
||||
} else {
|
||||
return float4(1.0);
|
||||
}
|
||||
return float4(pos, 1.0);
|
||||
}
|
||||
return float4(0.0);
|
||||
}
|
||||
Reference in New Issue
Block a user