Line | |
---|
1 | struct vsInputDepth
|
---|
2 | {
|
---|
3 | float4 pos : POSITION;
|
---|
4 | };
|
---|
5 |
|
---|
6 | struct vsOutputDepth
|
---|
7 | {
|
---|
8 | float4 pos : POSITION;
|
---|
9 | };
|
---|
10 |
|
---|
11 |
|
---|
12 | vsOutputDepth
|
---|
13 | vsDepth(vsInputDepth input)
|
---|
14 | {
|
---|
15 | vsOutputDepth output = (vsOutputDepth)0;
|
---|
16 | output.pos = mul(input.pos, modelToProjMatrix);
|
---|
17 | return output;
|
---|
18 | }
|
---|
19 |
|
---|
20 | float4
|
---|
21 | psDepth(vsOutputDepth input) : COLOR
|
---|
22 | {
|
---|
23 | return 1;
|
---|
24 | }
|
---|
25 |
|
---|
26 | technique 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.