source: GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/linearDepth.cg @ 2809

Revision 2809, 596 bytes checked in by mattausch, 16 years ago (diff)

working on ssao deferred shading approach (debug version!!)

Line 
1// input
2struct appdata
3{
4    float4 pos: POSITION;
5    float4 color: COLOR0;
6    float4 texCoord: TEXCOORD0;
7};
8
9
10// output
11
12struct vfconn
13{
14     float4 pos : POSITION;
15     float4 color0: COLOR0;
16     float4 texCoord0: TEXCOORD0;
17     float4 lindepth: TEXCOORD1;
18};
19
20
21vfconn 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.