source: GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo/PRMDemo.material @ 2202

Revision 2202, 2.6 KB checked in by szirmay, 17 years ago (diff)
Line 
1vertex_program GTP/PathMap_VS hlsl
2{
3   source PathMap.hlsl
4   entry_point vsWalk
5   target vs_2_0   
6}
7
8fragment_program GTP/PathMap_PS hlsl
9{
10   source PathMap.hlsl
11   entry_point psWalk
12   target ps_3_0
13   flow_control avoid
14}
15
16material PRMDemo/Base
17{
18 technique maintechnique
19 {
20   pass mainpass
21   {
22        IllumTechniques
23        {
24                RenderTechnique PathMap
25                {
26           
27                }
28        }
29        texture_unit color
30        {
31     colour_op replace
32    }
33   }
34   
35 }
36}
37
38
39material PRMDemo/rustyMetal : PRMDemo/Base
40{
41 technique maintechnique
42 {
43   pass mainpass
44   {
45   texture_unit color
46    {
47     texture wrtile.jpg     
48    }
49   }
50  }
51}
52
53material PRMDemo/redwire : PRMDemo/Base
54{
55 technique maintechnique
56 {
57   pass mainpass
58   {
59   texture_unit color
60    {
61     texture redwire.bmp
62    }
63   }
64  }
65}
66
67material PRMDemo/greenwire : PRMDemo/Base
68{
69 technique maintechnique
70 {
71   pass mainpass
72   {
73   texture_unit color
74    {
75     texture greenwire.bmp
76    }
77   }
78  }
79}
80
81material PRMDemo/whitewire : PRMDemo/Base
82{
83 technique maintechnique
84 {
85   pass mainpass
86   {
87   texture_unit color
88    {
89     texture whitewire.bmp
90    }
91   }
92  }
93}
94
95material PRMDemo/iron : PRMDemo/Base
96{
97 technique maintechnique
98 {
99   pass mainpass
100   {
101   texture_unit color
102    {
103     texture w2.jpg
104    }
105   }
106  }
107}
108
109
110vertex_program GTP/PathMap_ComputeWeights_VS hlsl
111{
112   source PathMapWeightCompute.hlsl
113   entry_point vsComputeWeights
114   target vs_2_0   
115}
116
117fragment_program GTP/PathMap_ComputeWeights_PS hlsl
118{
119   source PathMapWeightCompute.hlsl
120   entry_point psComputeWeights
121   target ps_2_0   
122}
123
124material GTP/PathMap_ComputeWeights
125{
126        technique
127        {
128                pass
129                {
130                        depth_check off
131                        cull_harware none
132                        vertex_program_ref GTP/PathMap_ComputeWeights_VS
133                        {
134                               
135                        }
136                        fragment_program_ref GTP/PathMap_ComputeWeights_PS
137                        {
138                        }
139                        texture_unit //entrypoint texture
140                        {
141                                filtering off
142                        }
143                }
144               
145        }
146}
147
148fragment_program GTP/PathMap_SumWeights_PS hlsl
149{
150   source PathMapWeightCompute.hlsl
151   entry_point psSumWeights
152   target ps_3_0
153   flow_control prefer     
154}
155
156material GTP/PathMap_SumWeights
157{
158        technique
159        {
160                pass
161                {
162                       
163                        depth_check off
164                        cull_harware none
165                        lighting off
166                        vertex_program_ref GTP/PathMap_ComputeWeights_VS
167                        {
168                               
169                        }
170                        fragment_program_ref GTP/PathMap_SumWeights_PS
171                        {
172                        }
173                        texture_unit //entrypoint texture
174                        {
175                                filtering off
176                        }
177                        texture_unit //entrypoint weight texture
178                        {
179                                filtering off
180                        }
181                        texture_unit //cluster length
182                        {
183                                filtering off
184                        }
185                }
186               
187        }
188}
Note: See TracBrowser for help on using the repository browser.