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

Revision 2293, 8.8 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                         }                                     
133                    }   
134                       
135                        ambient 0.37606 0.37606 0.37606 1
136                        diffuse 0.37606 0.37606 0.37606 1
137                        specular 0 0 0 0
138                        emissive 0 0 0
139                       
140                }
141        }
142}
143
144material lambert1 : Difflab/TexturedPhong
145{
146        technique 0
147        {
148                pass 0
149                {
150                        IllumTechniques
151                {
152                       
153                        //RenderTechnique CausticReciever
154                        //{
155                        //      max_caster_count        1                                       
156                        //}
157                        RenderTechnique DepthShadowReciever
158                        {
159                                        max_light_count 3
160                                        vertex_program_name GTP/Basic/LightCPos_VS
161                                        fragment_program_name GTP/Basic/SM/Dist_VSM_PS
162                                        set_light_view true
163                                        set_light_farplane true
164                                        light_viewproj_param_name LightViewProj
165                                        light_view_param_name LightView
166                                        light_farplane_param_name lightFarPlane
167                                        world_view_proj_param_name WorldViewProj
168                                        world_param_name World
169                        }                                       
170                }       
171                        fragment_program_ref
172                        {
173                                param_named shininess float 0
174                                param_named ambient float4 1.0 1.0 1.0 1
175                                param_named diffuse float4 1.0 1.0 1.0 1                               
176                                param_named specular float4 0 0 0 0
177                        }       
178                       
179                        texture_unit 0
180                        {
181                                texture grey.tga                               
182                        }
183                }
184        }
185}
186
187material whitebackground : Difflab/TexturedPhong
188{
189        technique
190        {
191                pass
192                {
193                        IllumTechniques
194                    {
195                       
196                        // RenderTechnique CausticReceiver
197                        // {
198                        //      max_caster_count        1                                       
199                        // }
200                         RenderTechnique DepthShadowReceiver
201                         {
202                                        max_light_count 3
203                                        vertex_program_name GTP/Basic/LightCPos_VS
204                                        fragment_program_name GTP/Basic/SM/Dist_VSM_PS
205                                        set_light_view true
206                                        set_light_farplane true
207                                        light_viewproj_param_name LightViewProj
208                                        light_view_param_name LightView
209                                        light_farplane_param_name lightFarPlane
210                                        world_view_proj_param_name WorldViewProj
211                                        world_param_name World
212                         }                                     
213                    }   
214                        fragment_program_ref
215                        {
216                                param_named shininess float 0
217                                param_named ambient float4 1.0 1.0 1.0 1
218                                param_named diffuse float4 1.0 1.0 1.0 1                               
219                                param_named specular float4 0 0 0 0
220                        }       
221                    cull_hardware none             
222                }
223        }
224}
225material laborceil
226{
227        technique
228        {
229                pass
230                {
231                       
232                lighting off
233                        ambient 0 0 0 1
234                        diffuse 0 0 0 1
235                        specular 0 0 0 0
236                        emissive 0 0 0
237                        texture_unit
238                        {
239                                texture laborwall.jpg
240                        }
241                }
242        }
243}
244material laborwall : Difflab/TexturedPhong
245{
246        technique 0
247        {
248                pass 0
249                {
250                        IllumTechniques
251                {
252                       
253                        //RenderTechnique CausticReceiver
254                        //{
255                        //      max_caster_count        1                                       
256                        //}
257                        RenderTechnique DepthShadowReceiver
258                        {
259                                        max_light_count 3
260                                        vertex_program_name GTP/Basic/LightCPos_VS
261                                        fragment_program_name GTP/Basic/SM/Dist_VSM_PS
262                                        set_light_view true
263                                        set_light_farplane true
264                                        light_viewproj_param_name LightViewProj
265                                        light_view_param_name LightView
266                                        light_farplane_param_name lightFarPlane
267                                        world_view_proj_param_name WorldViewProj
268                                        world_param_name World
269                        }                                       
270                }       
271                        fragment_program_ref
272                        {
273                                param_named shininess float 0
274                                param_named ambient float4 1.0 1.0 1.0 1
275                                param_named diffuse float4 1.0 1.0 1.0 1                               
276                                param_named specular float4 0 0 0 0
277                        }       
278                       
279                        texture_unit 0
280                        {
281                                texture laborwall.jpg                           
282                        }
283                }
284        }
285}
286
287material lambert6  : Difflab/TexturedPhong
288{
289        technique 0
290        {
291                pass 0
292                {
293                        IllumTechniques
294                {
295                       
296                        //RenderTechnique CausticReceiver
297                        //{
298                        //      max_caster_count        1                                       
299                        //}
300                        RenderTechnique DepthShadowReceiver
301                        {
302                                        max_light_count 3
303                                        vertex_program_name GTP/Basic/LightCPos_VS
304                                        fragment_program_name GTP/Basic/SM/Dist_VSM_PS
305                                        set_light_view true
306                                        set_light_farplane true
307                                        light_viewproj_param_name LightViewProj
308                                        light_view_param_name LightView
309                                        light_farplane_param_name lightFarPlane
310                                        world_view_proj_param_name WorldViewProj
311                                        world_param_name World
312                        }                                       
313                }       
314                        fragment_program_ref
315                        {
316                                param_named shininess float 0
317                                param_named ambient float4 1 1 1 1
318                                param_named diffuse float4 1 1 1 1                             
319                                param_named specular float4 0 0 0 0
320                        }                       
321
322                        texture_unit 0
323                        {
324                                texture striped.jpg                             
325                        }
326                }
327        }
328}
329material doorlamp
330{
331        technique
332        {
333                pass
334                {
335                lighting off
336                        ambient 0 0 0 1
337                        diffuse 0 0 0 1
338                        specular 0 0 0 0
339                        emissive 0 0 0
340                        texture_unit
341                        {
342                        texture lamp.jpg
343                        }
344                }
345        }
346}
347material equipt : Difflab/TexturedPhong
348{
349        technique 0
350        {
351       
352                pass 0
353                {
354                        IllumTechniques
355                {
356                       
357                        //RenderTechnique CausticReceiver
358                        //{
359                        //      max_caster_count        1                                       
360                        //}
361                        RenderTechnique DepthShadowReceiver
362                        {
363                                        max_light_count 3
364                                        vertex_program_name GTP/Basic/LightCPos_VS
365                                        fragment_program_name GTP/Basic/SM/Dist_VSM_PS
366                                        set_light_view true
367                                        set_light_farplane true
368                                        light_viewproj_param_name LightViewProj
369                                        light_view_param_name LightView
370                                        light_farplane_param_name lightFarPlane
371                                        world_view_proj_param_name WorldViewProj
372                                        world_param_name World
373                        }                                       
374                }       
375                        fragment_program_ref
376                        {
377                                param_named shininess float 51.418
378                                param_named ambient float4 0.1282 0.1282 0.1282 1
379                                param_named diffuse float4 0.1282 0.1282 0.1282 1                               
380                                param_named specular float4 1 1 1 1
381                        }                       
382                }
383        }
384}
385material bluelamp
386{
387        technique
388        {
389                pass
390                {
391                       
392                lighting off
393                        ambient 0.5 0.5 0.5 1
394                        diffuse 0.5 0.5 0.5 1
395                        specular 0.5 0.5 0.5 20
396                        emissive 0 0 0
397                        texture_unit
398                        {
399                        texture bluelamp.jpg
400                        }
401                }
402               
403        }
404}
Note: See TracBrowser for help on using the repository browser.