source: GTP/trunk/App/Demos/Illum/PathMap/torch.tx @ 1519

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