source: GTP/trunk/App/Demos/Illum/pathmap/depthMap.fx @ 2197

Revision 2197, 498 bytes checked in by szirmay, 17 years ago (diff)
Line 
1struct vsInputDepth
2{
3    float4 pos                  : POSITION;
4};
5
6struct vsOutputDepth
7{
8    float4 pos                  : POSITION;
9};
10
11
12vsOutputDepth
13        vsDepth(vsInputDepth input)
14{
15        vsOutputDepth output = (vsOutputDepth)0;
16        output.pos = mul(input.pos, modelToProjMatrix);
17        return output;
18}
19
20float4
21        psDepth(vsOutputDepth input) : COLOR
22{
23        return 1;
24}
25
26technique Depth{
27        pass P0
28    {
29        VertexShader = compile vs_2_0 vsDepth();
30        PixelShader  = compile ps_2_0 psDepth();
31    }
32}
Note: See TracBrowser for help on using the repository browser.