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

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