Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/archive/skybox/Media/materials/programs/Bloom_vs11.hlsl @ 11183

Last change on this file since 11183 was 390, checked in by landauf, 17 years ago

added materials

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.