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

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

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

Line 
1struct fragment
2{
3      float4 position  : POSITION; // screen position
4      float4 color0    : COLOR0;
5      float4 texCoord: TEXCOORD0;
6};
7
8
9struct pixel
10{
11      float4 color : COLOR;     
12};
13
14
15pixel main(fragment IN,
16           const uniform sampler2D tex,
17           const uniform sampler2D depthTex)
18{
19      pixel OUT;
20      //OUT.color = IN.color0;
21       
22      float4 col = tex2D(tex, IN.texCoord.xy) * 0.01;
23      col += tex2D(depthTex, IN.texCoord.xy).x * 0.5;
24      OUT.color = col;
25       
26      return OUT;
27}
Note: See TracBrowser for help on using the repository browser.