Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git] / Test / hlsl.w-recip2.frag
1 struct VSOutput
2 {
3     float4 PositionPS           : SV_Position;
4     float3 PosInLightViewSpace  : LIGHT_SPACE_POS;
5     float3 NormalWS             : NORMALWS;
6     float2 TexCoord             : TEXCOORD;
7 };
8
9 float4 AmbientColor = float4(1, 0.5, 0, 1);
10 float4 AmbientColor2 = float4(0.5, 1, 0, 0);
11
12 float4 main(VSOutput VSOut) : SV_TARGET
13 {
14     if (VSOut.PositionPS.x < 400)
15         return AmbientColor;
16     else
17         return AmbientColor2;
18 }
19