Revision 2809,
596 bytes
checked in by mattausch, 17 years ago
(diff) |
working on ssao deferred shading approach (debug version!!)
|
Line | |
---|
1 | // input |
---|
2 | struct appdata |
---|
3 | { |
---|
4 | float4 pos: POSITION; |
---|
5 | float4 color: COLOR0; |
---|
6 | float4 texCoord: TEXCOORD0; |
---|
7 | }; |
---|
8 | |
---|
9 | |
---|
10 | // output |
---|
11 | |
---|
12 | struct vfconn |
---|
13 | { |
---|
14 | float4 pos : POSITION; |
---|
15 | float4 color0: COLOR0; |
---|
16 | float4 texCoord0: TEXCOORD0; |
---|
17 | float4 lindepth: TEXCOORD1; |
---|
18 | }; |
---|
19 | |
---|
20 | |
---|
21 | vfconn main(appdata IN, uniform float4x4 ModelViewProj) |
---|
22 | { |
---|
23 | vfconn OUT; |
---|
24 | |
---|
25 | // Transform The Vertex Position Into Homogenous Clip-Space (Required) |
---|
26 | OUT.pos = mul(ModelViewProj, IN.pos); |
---|
27 | |
---|
28 | OUT.color0 = IN.color; |
---|
29 | //OUT.color0[1] = 1.0f; |
---|
30 | |
---|
31 | OUT.texCoord0 = IN.texCoord; |
---|
32 | OUT.lindepth = OUT.pos; |
---|
33 | |
---|
34 | return OUT; |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.