projects
/
platform
/
upstream
/
glslang.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2891 from dneto0/hlsl-namespace
[platform/upstream/glslang.git]
/
Test
/
hlsl.w-recip.frag
1
float4 AmbientColor = float4(1, 0.5, 0, 1);
2
float4 AmbientColor2 = float4(0.5, 1, 0, 0);
3
4
float4 main(float4 vpos : SV_POSITION) : SV_TARGET
5
{
6
float4 vpos_t = float4(vpos.xyz, 1 / vpos.w);
7
if (vpos_t.x < 400)
8
return AmbientColor;
9
else
10
return AmbientColor2;
11
}
12