source:
code/branches/skybox/Media/materials/programs/Bloom_vs11.hlsl
@
2770
Last change on this file since 2770 was 390, checked in by landauf, 17 years ago | |
---|---|
File size: 343 bytes |
Line | |
---|---|
1 | |
2 | struct VS_OUTPUT { |
3 | float4 Pos: POSITION; |
4 | float2 texCoord: TEXCOORD0; |
5 | }; |
6 | |
7 | VS_OUTPUT main(float4 Pos: POSITION){ |
8 | VS_OUTPUT Out; |
9 | |
10 | // Clean up inaccuracies |
11 | Pos.xy = sign(Pos.xy); |
12 | |
13 | Out.Pos = float4(Pos.xy, 0, 1); |
14 | // Image-space |
15 | Out.texCoord.x = 0.5 * (1 + Pos.x); |
16 | Out.texCoord.y = 0.5 * (1 - Pos.y); |
17 | |
18 | return Out; |
19 | } |
20 | |
21 |
Note: See TracBrowser
for help on using the repository browser.