Last change
on this file since 9580 was
7708,
checked in by dafrick, 14 years ago
|
Merging cleanup branch. You will need to update your data repository as well as your local copy of the code.
|
-
Property svn:eol-style set to
native
|
File size:
344 bytes
|
Rev | Line | |
---|
[5120] | 1 | struct VS_OUTPUT { |
---|
| 2 | float4 Pos: POSITION; |
---|
| 3 | float2 texCoord: TEXCOORD0; |
---|
| 4 | }; |
---|
| 5 | |
---|
| 6 | VS_OUTPUT main(float4 Pos: POSITION){ |
---|
| 7 | VS_OUTPUT Out; |
---|
| 8 | |
---|
| 9 | // Clean up inaccuracies |
---|
| 10 | Pos.xy = sign(Pos.xy); |
---|
| 11 | |
---|
| 12 | Out.Pos = float4(Pos.xy, 0, 1); |
---|
| 13 | // Image-space |
---|
| 14 | Out.texCoord.x = 0.5 * (1 + Pos.x); |
---|
| 15 | Out.texCoord.y = 0.5 * (1 - Pos.y); |
---|
| 16 | |
---|
| 17 | return Out; |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | |
---|
Note: See
TracBrowser
for help on using the repository browser.