Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutorial/Tutorial/Media/materials/programs/Bloom_vs11.hlsl @ 25

Last change on this file since 25 was 25, checked in by nicolasc, 17 years ago

added Media and Config

File size: 343 bytes
Line 
1
2struct VS_OUTPUT {
3   float4 Pos: POSITION;
4   float2 texCoord: TEXCOORD0;
5};
6
7VS_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.