12 lines
217 B
Plaintext
12 lines
217 B
Plaintext
vertex main :: (pos : float3 @position) -> float4 @position {
|
|
if pos.x > 100 {
|
|
return float4(pos, 1.0);
|
|
} else if pos.x > 50 {
|
|
return float4(pos, 1.0);
|
|
} else {
|
|
return float4(1.0);
|
|
}
|
|
return float4(0.0);
|
|
}
|
|
|