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

Revision 2175, 7.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 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 GameTools/ShadowMap/ShadowDistVS
126                                        fragment_program_name GameTools/ShadowMap/ShadowDistPS
127                                        set_light_view true
128                                        set_light_farplane true
129                         }                                     
130                    }   
131                       
132                        ambient 0.37606 0.37606 0.37606 1
133                        diffuse 0.37606 0.37606 0.37606 1
134                        specular 0 0 0 0
135                        emissive 0 0 0
136                       
137                }
138        }
139}
140material whitebackground : Difflab/TexturedPhong
141{
142        technique
143        {
144                pass
145                {
146                        IllumTechniques
147                    {
148                       
149                        // RenderTechnique CausticReciever
150                        // {
151                        //      max_caster_count        1                                       
152                        // }
153                         RenderTechnique DepthShadowReciever
154                         {
155                                        max_light_count 3
156                                        vertex_program_name GameTools/ShadowMap/ShadowDistVS
157                                        fragment_program_name GameTools/ShadowMap/ShadowDistPS
158                                        set_light_view true
159                                        set_light_farplane true
160                         }                                     
161                    }   
162                        fragment_program_ref
163                        {
164                                param_named shininess float 0
165                                param_named ambient float4 1.0 1.0 1.0 1
166                                param_named diffuse float4 1.0 1.0 1.0 1                               
167                                param_named specular float4 0 0 0 0
168                        }       
169                    cull_hardware none             
170                }
171        }
172}
173material laborceil
174{
175        technique
176        {
177                pass
178                {
179                       
180                lighting off
181                        ambient 0 0 0 1
182                        diffuse 0 0 0 1
183                        specular 0 0 0 0
184                        emissive 0 0 0
185                        texture_unit
186                        {
187                                texture laborwall.jpg
188                        }
189                }
190        }
191}
192material laborwall : Difflab/TexturedPhong
193{
194        technique 0
195        {
196                pass 0
197                {
198                        IllumTechniques
199                {
200                       
201                        //RenderTechnique CausticReciever
202                        //{
203                        //      max_caster_count        1                                       
204                        //}
205                        RenderTechnique DepthShadowReciever
206                        {
207                                        max_light_count 3
208                                        vertex_program_name GameTools/ShadowMap/ShadowDistVS
209                                        fragment_program_name GameTools/ShadowMap/ShadowDistPS
210                                        set_light_view true
211                                        set_light_farplane true
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                       
222                        texture_unit 0
223                        {
224                                texture laborwall.jpg                           
225                        }
226                }
227        }
228}
229
230material lambert6  : Difflab/TexturedPhong
231{
232        technique 0
233        {
234                pass 0
235                {
236                        IllumTechniques
237                {
238                       
239                        //RenderTechnique CausticReciever
240                        //{
241                        //      max_caster_count        1                                       
242                        //}
243                        RenderTechnique DepthShadowReciever
244                        {
245                                        max_light_count 3
246                                        vertex_program_name GameTools/ShadowMap/ShadowDistVS
247                                        fragment_program_name GameTools/ShadowMap/ShadowDistPS
248                                        set_light_view true
249                                        set_light_farplane true
250                        }                                       
251                }       
252                        fragment_program_ref
253                        {
254                                param_named shininess float 0
255                                param_named ambient float4 1 1 1 1
256                                param_named diffuse float4 1 1 1 1                             
257                                param_named specular float4 0 0 0 0
258                        }                       
259
260                        texture_unit 0
261                        {
262                                texture striped.jpg                             
263                        }
264                }
265        }
266}
267material doorlamp
268{
269        technique
270        {
271                pass
272                {
273                lighting off
274                        ambient 0 0 0 1
275                        diffuse 0 0 0 1
276                        specular 0 0 0 0
277                        emissive 0 0 0
278                        texture_unit
279                        {
280                        texture lamp.jpg
281                        }
282                }
283        }
284}
285material equipt : Difflab/TexturedPhong
286{
287        technique 0
288        {
289       
290                pass 0
291                {
292                        IllumTechniques
293                {
294                       
295                        //RenderTechnique CausticReciever
296                        //{
297                        //      max_caster_count        1                                       
298                        //}
299                        RenderTechnique DepthShadowReciever
300                        {
301                                        max_light_count 3
302                                        vertex_program_name GameTools/ShadowMap/ShadowDistVS
303                                        fragment_program_name GameTools/ShadowMap/ShadowDistPS
304                                        set_light_view true
305                                        set_light_farplane true
306                        }                                       
307                }       
308                        fragment_program_ref
309                        {
310                                param_named shininess float 51.418
311                                param_named ambient float4 0.1282 0.1282 0.1282 1
312                                param_named diffuse float4 0.1282 0.1282 0.1282 1                               
313                                param_named specular float4 1 1 1 1
314                        }                       
315                }
316        }
317}
318material bluelamp
319{
320        technique
321        {
322                pass
323                {
324                       
325                lighting off
326                        ambient 0.5 0.5 0.5 1
327                        diffuse 0.5 0.5 0.5 1
328                        specular 0.5 0.5 0.5 20
329                        emissive 0 0 0
330                        texture_unit
331                        {
332                        texture bluelamp.jpg
333                        }
334                }
335               
336        }
337}
Note: See TracBrowser for help on using the repository browser.