source: OGRE/trunk/ogrenew/Samples/Media/materials/programs/Bloom_vs11.hlsl @ 692

Revision 692, 343 bytes checked in by mattausch, 19 years ago (diff)

adding ogre 1.2 and dependencies

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.