xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/hlsl.w-recip2.frag (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1struct VSOutput
2{
3    float4 PositionPS 	        : SV_Position;
4    float3 PosInLightViewSpace 	: LIGHT_SPACE_POS;
5    float3 NormalWS 	        : NORMALWS;
6    float2 TexCoord 	        : TEXCOORD;
7};
8
9float4 AmbientColor = float4(1, 0.5, 0, 1);
10float4 AmbientColor2 = float4(0.5, 1, 0, 0);
11
12float4 main(VSOutput VSOut) : SV_TARGET
13{
14    if (VSOut.PositionPS.x < 400)
15        return AmbientColor;
16    else
17        return AmbientColor2;
18}
19
20