source:
data/trunk/shaders/water.vert
@
3809
Last change on this file since 3809 was 3542, checked in by bensch, 19 years ago | |
---|---|
File size: 359 bytes |
Rev | Line | |
---|---|---|
[3542] | 1 | |
2 | float4x4 view_proj_matrix; | |
3 | float3 camPos; | |
4 | ||
5 | struct VS_OUTPUT { | |
6 | float4 Pos: POSITION; | |
7 | float2 texCoord: TEXCOORD0; | |
8 | float3 viewVec: TEXCOORD1; | |
9 | }; | |
10 | ||
11 | VS_OUTPUT main(float4 pos: POSITION, float2 texCoord: TEXCOORD0){ | |
12 | VS_OUTPUT Out; | |
13 | ||
14 | Out.Pos = mul(view_proj_matrix, pos); | |
15 | Out.texCoord = texCoord; | |
16 | Out.viewVec = pos - camPos; | |
17 | ||
18 | return Out; | |
19 | } | |
20 | ||
21 |
Note: See TracBrowser
for help on using the repository browser.