19 lines
335 B
Plaintext
19 lines
335 B
Plaintext
float4 vs_main(float3 pos : POSITION) : SV_POSITION
|
|
{
|
|
if (pos.x > 100)
|
|
{
|
|
if (pos.x > 50)
|
|
{
|
|
return float4(pos, 1.0f);
|
|
}
|
|
else
|
|
{
|
|
return float4(1.0f, 1.0f, 1.0f, 1.0f);
|
|
}
|
|
return float4(pos, 1.0f);
|
|
}
|
|
|
|
return float4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
}
|
|
|