Line | |
---|
1 | struct vsInputTorch
|
---|
2 | {
|
---|
3 | float4 pos : POSITION;
|
---|
4 | float2 tex : TEXCOORD0;
|
---|
5 | };
|
---|
6 |
|
---|
7 | struct vsOutputTorch
|
---|
8 | {
|
---|
9 | float4 pos : POSITION;
|
---|
10 | float2 tex : TEXCOORD0;
|
---|
11 | };
|
---|
12 |
|
---|
13 |
|
---|
14 | vsOutputTorch
|
---|
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 |
|
---|
24 | float4
|
---|
25 | psTorch(vsOutputTorch input) : COLOR
|
---|
26 | {
|
---|
27 | return tex2D(brdfMapSampler, input.tex);
|
---|
28 | }
|
---|
29 |
|
---|
30 | technique 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.