source:
downloads/Samples/Media/materials/programs/Bloom_vs11.hlsl
@
3
Last change on this file since 3 was 3, checked in by anonymous, 17 years ago | |
---|---|
File size: 343 bytes |
Rev | Line | |
---|---|---|
[3] | 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.