mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-14 13:51:04 +00:00
13 lines
288 B
GLSL
13 lines
288 B
GLSL
|
float4 AmbientColor = float4(1, 0.5, 0, 1);
|
||
|
float4 AmbientColor2 = float4(0.5, 1, 0, 0);
|
||
|
|
||
|
float4 main(float4 vpos : SV_POSITION) : SV_TARGET
|
||
|
{
|
||
|
float4 vpos_t = float4(vpos.xyz, 1 / vpos.w);
|
||
|
if (vpos_t.x < 400)
|
||
|
return AmbientColor;
|
||
|
else
|
||
|
return AmbientColor2;
|
||
|
}
|
||
|
|