Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/network/shaders/water.vert @ 3909

Last change on this file since 3909 was 3542, checked in by bensch, 19 years ago

data: new shaders

File size: 359 bytes
Line 
1
2float4x4 view_proj_matrix;
3float3 camPos;
4
5struct VS_OUTPUT {
6   float4 Pos: POSITION;
7   float2 texCoord: TEXCOORD0;
8   float3 viewVec:  TEXCOORD1;
9};
10
11VS_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.