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

Revision 2246, 4.2 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 prefer
14}
15
16material PRMDemo/Base
17{
18 technique maintechnique
19 {
20   pass mainpass
21   {
22        IllumTechniques
23        {
24         //     RenderTechnique PathMap
25         //     {
26           
27          //    }
28        //      RenderTechnique DepthShadowReciever
29        //      {
30        //      max_light_count 2
31        //              vertex_program_name GTP/Basic/LightCPos_VS
32        //              fragment_program_name GTP/Basic/SM/Dist_VSM_PS
33        //              set_light_view true
34        //              set_light_farplane true
35        //              light_viewproj_param_name LightViewProj
36        //              light_view_param_name LightView
37        //              light_farplane_param_name lightFarPlane
38        //              world_view_proj_param_name WorldViewProj
39        //              world_param_name World
40         //     }
41        }
42        vertex_program_ref GTP/Basic/ShadedTex_VS
43        {
44                param_named_auto WorldViewProj worldviewproj_matrix
45                param_named_auto World world_matrix
46                param_named_auto WorldInv inverse_world_matrix
47        }
48        fragment_program_ref GTP/Basic/Shaded/TexturedOneLight_PS
49        {
50                param_named_auto lightPos light_position 0
51                param_named_auto lightDir light_direction 0
52                param_named_auto lightColor light_diffuse_colour 0
53                param_named_auto lightPower light_power 0
54        }
55        texture_unit color
56        {
57        colour_op replace
58    }   
59   }   
60 }
61}
62
63
64material PRMDemo/rustyMetal : PRMDemo/Base
65{
66 technique maintechnique
67 {
68   pass mainpass
69   {
70   texture_unit color
71    {
72     texture wrtile.jpg     
73    }
74   }
75  }
76}
77
78material PRMDemo/redwire : PRMDemo/Base
79{
80 technique maintechnique
81 {
82   pass mainpass
83   {
84   texture_unit color
85    {
86     texture redwire.bmp
87    }
88   }
89  }
90}
91
92material PRMDemo/greenwire : PRMDemo/Base
93{
94 technique maintechnique
95 {
96   pass mainpass
97   {
98   texture_unit color
99    {
100     texture greenwire.bmp
101    }
102   }
103  }
104}
105
106material PRMDemo/whitewire : PRMDemo/Base
107{
108 technique maintechnique
109 {
110   pass mainpass
111   {
112   texture_unit color
113    {
114     texture whitewire.bmp
115    }
116   }
117  }
118}
119
120material PRMDemo/iron : PRMDemo/Base
121{
122 technique maintechnique
123 {
124   pass mainpass
125   {
126   texture_unit color
127    {
128     texture w2.jpg
129    }
130   }
131  }
132}
133
134
135vertex_program GTP/PathMap_ComputeWeights_VS hlsl
136{
137   source PathMapWeightCompute.hlsl
138   entry_point vsComputeWeights
139   target vs_2_0   
140}
141
142fragment_program GTP/PathMap_ComputeWeights_PS hlsl
143{
144   source PathMapWeightCompute.hlsl
145   entry_point psComputeWeights
146   target ps_3_0   
147}
148
149material GTP/PathMap_ComputeWeights
150{
151        technique
152        {
153                pass
154                {
155                        depth_check off
156                        cull_harware none
157                        vertex_program_ref GTP/PathMap_ComputeWeights_VS
158                        {
159                               
160                        }
161                        fragment_program_ref GTP/PathMap_ComputeWeights_PS
162                        {
163                        }
164                        texture_unit //entrypoint texture
165                        {
166                                filtering off
167                        }
168                        texture_unit shadow_map //stores distances
169                        {
170                       
171                }
172                }
173               
174        }
175}
176
177fragment_program GTP/PathMap_SumWeights_PS hlsl
178{
179   source PathMapWeightCompute.hlsl
180   entry_point psSumWeights
181   target ps_3_0
182   flow_control prefer     
183}
184
185material GTP/PathMap_SumWeights
186{
187        technique
188        {
189                pass
190                {
191                       
192                        depth_check off
193                        cull_harware none
194                        lighting off
195                        vertex_program_ref GTP/PathMap_ComputeWeights_VS
196                        {
197                               
198                        }
199                        fragment_program_ref GTP/PathMap_SumWeights_PS
200                        {
201                        }
202                        texture_unit //entrypoint texture
203                        {
204                                filtering none
205                        }
206                        texture_unit //entrypoint weight texture
207                        {
208                                filtering none
209                        }
210                        texture_unit //cluster length
211                        {
212                                filtering none
213                        }
214                }
215               
216        }
217}
218
219vertex_program GTP/EPDisplayVS hlsl
220{
221   source PathMapWeightCompute.hlsl
222   entry_point EntryPointDisplayVS
223   target vs_2_0   
224}
225fragment_program GTP/EPDisplayPS hlsl
226{
227   source PathMapWeightCompute.hlsl
228   entry_point EntryPointDisplayPS
229   target ps_2_0   
230}
231
232material GTP/PM/EPBillboards
233{
234 technique
235 {
236   pass
237   {
238                polygon_mode points
239                point_size 10
240                vertex_program_ref GTP/EPDisplayVS
241                {
242                        param_named_auto worldViewProj worldviewproj_matrix     
243                }
244                fragment_program_ref GTP/EPDisplayPS
245                {
246                }
247        texture_unit
248        { 
249                filtering none   
250        }
251   }
252  }
253}
Note: See TracBrowser for help on using the repository browser.