source: GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/difflab.material @ 2404

Revision 2404, 9.0 KB checked in by szirmay, 17 years ago (diff)
Line 
1vertex_program PhongViewSpaceVS hlsl
2{
3        source GameTools_Phong.hlsl
4        entry_point PhongViewSpaceVS
5        target vs_2_0
6}
7
8fragment_program TexturedPhongPS hlsl
9{
10        source GameTools_Phong.hlsl
11        entry_point PhongTexturedPS
12        target ps_3_0
13}
14
15material Difflab/TexturedPhong
16{
17
18   technique 0
19   {
20     
21      pass 0
22      {
23           
24                vertex_program_ref PhongViewSpaceVS
25        {       
26           param_named_auto worldViewProj worldviewproj_matrix
27           param_named_auto worldView world_matrix
28           param_named_auto worldViewI inverse_worldview_matrix                 
29        }
30                fragment_program_ref  TexturedPhongPS
31                {               
32                   param_named_auto cameraPos camera_position
33                                               
34                   param_named_auto lightcol1 light_diffuse_colour 0   
35                   param_named_auto lightcol2 light_diffuse_colour 1
36                   param_named_auto lightcol3 light_diffuse_colour 2
37                  // param_named_auto lightcol4 light_diffuse_colour 3
38                   //param_named_auto lightcol5 light_diffuse_colour 4
39                  // param_named_auto lightcol6 light_diffuse_colour 5
40                  // param_named_auto lightcol7 light_diffuse_colour 6
41                  // param_named_auto lightcol8 light_diffuse_colour 7
42                   
43                   param_named_auto lightpos1 light_position 0
44                   param_named_auto lightpos2 light_position 1
45                   param_named_auto lightpos3 light_position 2
46                  // param_named_auto lightpos4 light_position 3
47                  // param_named_auto lightpos5 light_position 4
48                  // param_named_auto lightpos6 light_position 5
49                  // param_named_auto lightpos7 light_position 6
50                 //  param_named_auto lightpos8 light_position 7
51                   
52                   param_named_auto lightdir1 light_direction 0
53                   param_named_auto lightdir2 light_direction 1
54                   param_named_auto lightdir3 light_direction 2
55                  // param_named_auto lightdir4 light_direction 3
56                  // param_named_auto lightdir5 light_direction 4
57                  // param_named_auto lightdir6 light_direction 5
58                  // param_named_auto lightdir7 light_direction 6
59                  // param_named_auto lightdir8 light_direction 7
60                   
61                   param_named_auto lightscale1 light_power 0
62                   param_named_auto lightscale2 light_power 1
63                   param_named_auto lightscale3 light_power 2
64                  // param_named_auto lightscale4 light_power 3
65                  // param_named_auto lightscale5 light_power 4
66                  // param_named_auto lightscale6 light_power 5
67                  // param_named_auto lightscale7 light_power 6
68                  // param_named_auto lightscale8 light_power 7
69                   
70                   param_named_auto ambientLight ambient_light_colour
71                   
72                   param_named shininess float 20
73                   param_named ambient float4 0.2 0.2 0.2 1
74                   param_named diffuse float4 0.5 0.5 0.5 1
75                   param_named specular float4 1 1 1 1
76                 }
77                 texture_unit 0
78                 {
79                 
80                 }     
81       
82       }
83    }
84}
85
86material screen
87{
88        technique
89        {
90                pass
91                {
92                       
93                   
94                        cull_hardware none
95                        lighting off
96                        ambient 0 0 0 1
97                        diffuse 0 0 0 1
98                        specular 0 0 0 0
99                        emissive 0 0 0
100                        texture_unit
101                        {
102                                texture screen.jpg
103                        }
104                }
105        }
106}
107material screenborder
108{
109        technique
110        {
111                pass
112                {
113                        IllumTechniques
114                    {
115                       
116                        // RenderTechnique CausticReceiver
117                        // {
118                        //      max_caster_count        1                                       
119                        // }
120                         RenderTechnique DepthShadowReceiver
121                         {
122                                        max_light_count 3
123                                        vertex_program_name GTP/Basic/LightCPos_VS
124                                        fragment_program_name GTP/Basic/SM/Dist_VSM_PS
125                                        set_light_view true
126                                        set_light_farplane true
127                                        light_viewproj_param_name LightViewProj
128                                        light_view_param_name LightView
129                                        light_farplane_param_name lightFarPlane
130                                        world_view_proj_param_name WorldViewProj
131                                        world_param_name World
132                                        nearest_from_camera false
133                         }                                     
134                    }   
135                       
136                        ambient 0.37606 0.37606 0.37606 1
137                        diffuse 0.37606 0.37606 0.37606 1
138                        specular 0 0 0 0
139                        emissive 0 0 0
140                       
141                }
142        }
143}
144
145material lambert1 : Difflab/TexturedPhong
146{
147        technique 0
148        {
149                pass 0
150                {
151                        IllumTechniques
152                {
153                       
154                        //RenderTechnique CausticReciever
155                        //{
156                        //      max_caster_count        1                                       
157                        //}
158                        RenderTechnique DepthShadowReciever
159                        {
160                                        max_light_count 3
161                                        vertex_program_name GTP/Basic/LightCPos_VS
162                                        fragment_program_name GTP/Basic/SM/Dist_VSM_PS
163                                        set_light_view true
164                                        set_light_farplane true
165                                        light_viewproj_param_name LightViewProj
166                                        light_view_param_name LightView
167                                        light_farplane_param_name lightFarPlane
168                                        world_view_proj_param_name WorldViewProj
169                                        world_param_name World
170                                        nearest_from_camera false
171                        }                                       
172                }       
173                        fragment_program_ref
174                        {
175                                param_named shininess float 0
176                                param_named ambient float4 1.0 1.0 1.0 1
177                                param_named diffuse float4 1.0 1.0 1.0 1                               
178                                param_named specular float4 0 0 0 0
179                        }       
180                       
181                        texture_unit 0
182                        {
183                                texture grey.tga                               
184                        }
185                }
186        }
187}
188
189material whitebackground : Difflab/TexturedPhong
190{
191        technique
192        {
193                pass
194                {
195                        IllumTechniques
196                    {
197                       
198                        // RenderTechnique CausticReceiver
199                        // {
200                        //      max_caster_count        1                                       
201                        // }
202                         RenderTechnique DepthShadowReceiver
203                         {
204                                        max_light_count 3
205                                        vertex_program_name GTP/Basic/LightCPos_VS
206                                        fragment_program_name GTP/Basic/SM/Dist_VSM_PS
207                                        set_light_view true
208                                        set_light_farplane true
209                                        light_viewproj_param_name LightViewProj
210                                        light_view_param_name LightView
211                                        light_farplane_param_name lightFarPlane
212                                        world_view_proj_param_name WorldViewProj
213                                        world_param_name World
214                                        nearest_from_camera false
215                         }                                     
216                    }   
217                        fragment_program_ref
218                        {
219                                param_named shininess float 0
220                                param_named ambient float4 1.0 1.0 1.0 1
221                                param_named diffuse float4 1.0 1.0 1.0 1                               
222                                param_named specular float4 0 0 0 0
223                        }       
224                    cull_hardware none             
225                }
226        }
227}
228material laborceil
229{
230        technique
231        {
232                pass
233                {
234                       
235                lighting off
236                        ambient 0 0 0 1
237                        diffuse 0 0 0 1
238                        specular 0 0 0 0
239                        emissive 0 0 0
240                        texture_unit
241                        {
242                                texture laborwall.jpg
243                        }
244                }
245        }
246}
247material laborwall : Difflab/TexturedPhong
248{
249        technique 0
250        {
251                pass 0
252                {
253                        IllumTechniques
254                {
255                       
256                        //RenderTechnique CausticReceiver
257                        //{
258                        //      max_caster_count        1                                       
259                        //}
260                        RenderTechnique DepthShadowReceiver
261                        {
262                                        max_light_count 3
263                                        vertex_program_name GTP/Basic/LightCPos_VS
264                                        fragment_program_name GTP/Basic/SM/Dist_VSM_PS
265                                        set_light_view true
266                                        set_light_farplane true
267                                        light_viewproj_param_name LightViewProj
268                                        light_view_param_name LightView
269                                        light_farplane_param_name lightFarPlane
270                                        world_view_proj_param_name WorldViewProj
271                                        world_param_name World
272                                        nearest_from_camera false
273                        }                                       
274                }       
275                        fragment_program_ref
276                        {
277                                param_named shininess float 0
278                                param_named ambient float4 1.0 1.0 1.0 1
279                                param_named diffuse float4 1.0 1.0 1.0 1                               
280                                param_named specular float4 0 0 0 0
281                        }       
282                       
283                        texture_unit 0
284                        {
285                                texture laborwall.jpg                           
286                        }
287                }
288        }
289}
290
291material lambert6  : Difflab/TexturedPhong
292{
293        technique 0
294        {
295                pass 0
296                {
297                        IllumTechniques
298                {
299                       
300                        //RenderTechnique CausticReceiver
301                        //{
302                        //      max_caster_count        1                                       
303                        //}
304                        RenderTechnique DepthShadowReceiver
305                        {
306                                        max_light_count 3
307                                        vertex_program_name GTP/Basic/LightCPos_VS
308                                        fragment_program_name GTP/Basic/SM/Dist_VSM_PS
309                                        set_light_view true
310                                        set_light_farplane true
311                                        light_viewproj_param_name LightViewProj
312                                        light_view_param_name LightView
313                                        light_farplane_param_name lightFarPlane
314                                        world_view_proj_param_name WorldViewProj
315                                        world_param_name World
316                                        nearest_from_camera false
317                        }                                       
318                }       
319                        fragment_program_ref
320                        {
321                                param_named shininess float 0
322                                param_named ambient float4 1 1 1 1
323                                param_named diffuse float4 1 1 1 1                             
324                                param_named specular float4 0 0 0 0
325                        }                       
326
327                        texture_unit 0
328                        {
329                                texture striped.jpg                             
330                        }
331                }
332        }
333}
334material doorlamp
335{
336        technique
337        {
338                pass
339                {
340                lighting off
341                        ambient 0 0 0 1
342                        diffuse 0 0 0 1
343                        specular 0 0 0 0
344                        emissive 0 0 0
345                        texture_unit
346                        {
347                        texture lamp.jpg
348                        }
349                }
350        }
351}
352material equipt : Difflab/TexturedPhong
353{
354        technique 0
355        {
356       
357                pass 0
358                {
359                        IllumTechniques
360                {
361                       
362                        //RenderTechnique CausticReceiver
363                        //{
364                        //      max_caster_count        1                                       
365                        //}
366                        RenderTechnique DepthShadowReceiver
367                        {
368                                        max_light_count 3
369                                        vertex_program_name GTP/Basic/LightCPos_VS
370                                        fragment_program_name GTP/Basic/SM/Dist_VSM_PS
371                                        set_light_view true
372                                        set_light_farplane true
373                                        light_viewproj_param_name LightViewProj
374                                        light_view_param_name LightView
375                                        light_farplane_param_name lightFarPlane
376                                        world_view_proj_param_name WorldViewProj
377                                        world_param_name World
378                                        nearest_from_camera false
379                        }                                       
380                }       
381                        fragment_program_ref
382                        {
383                                param_named shininess float 51.418
384                                param_named ambient float4 0.1282 0.1282 0.1282 1
385                                param_named diffuse float4 0.1282 0.1282 0.1282 1                               
386                                param_named specular float4 1 1 1 1
387                        }                       
388                }
389        }
390}
391material bluelamp
392{
393        technique
394        {
395                pass
396                {
397                       
398                lighting off
399                        ambient 0.5 0.5 0.5 1
400                        diffuse 0.5 0.5 0.5 1
401                        specular 0.5 0.5 0.5 20
402                        emissive 0 0 0
403                        texture_unit
404                        {
405                        texture bluelamp.jpg
406                        }
407                }
408               
409        }
410}
Note: See TracBrowser for help on using the repository browser.