source: GTP/trunk/App/Demos/Illum/pathmap/torch.tx @ 2197

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