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

Revision 2442, 6.1 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
15
16
17
18
19material Difflab/TexturedPhong
20{
21
22   technique 0
23   {
24     
25      pass 0
26      {
27        IllumTechniques
28        {
29                       
30                        // RenderTechnique CausticReceiver
31                        // {
32                        //      max_caster_count        1                                       
33                        // }
34                         RenderTechnique DepthShadowReceiver
35                         {
36                                        max_light_count 3
37                                        vertex_program_name GTP/Basic/LightCPos_VS
38                                        fragment_program_name GTP/Basic/SM/Dist_VSM_PS
39                                        set_light_view true
40                                        set_light_farplane true
41                                        light_viewproj_param_name LightViewProj
42                                        light_view_param_name LightView
43                                        light_farplane_param_name lightFarPlane
44                                        world_view_proj_param_name WorldViewProj
45                                        world_param_name World
46                                        nearest_from_camera false
47                         }                                     
48        }         
49               
50                vertex_program_ref PhongViewSpaceVS
51        {       
52           param_named_auto worldViewProj worldviewproj_matrix
53           param_named_auto worldView world_matrix
54           param_named_auto worldViewI inverse_worldview_matrix                 
55        }
56                fragment_program_ref  TexturedPhongPS
57                {               
58                   param_named_auto cameraPos camera_position
59                                               
60                   param_named_auto lightcol1 light_diffuse_colour 0   
61                   param_named_auto lightcol2 light_diffuse_colour 1
62                   param_named_auto lightcol3 light_diffuse_colour 2
63                  // param_named_auto lightcol4 light_diffuse_colour 3
64                   //param_named_auto lightcol5 light_diffuse_colour 4
65                  // param_named_auto lightcol6 light_diffuse_colour 5
66                  // param_named_auto lightcol7 light_diffuse_colour 6
67                  // param_named_auto lightcol8 light_diffuse_colour 7
68                   
69                   param_named_auto lightpos1 light_position 0
70                   param_named_auto lightpos2 light_position 1
71                   param_named_auto lightpos3 light_position 2
72                  // param_named_auto lightpos4 light_position 3
73                  // param_named_auto lightpos5 light_position 4
74                  // param_named_auto lightpos6 light_position 5
75                  // param_named_auto lightpos7 light_position 6
76                 //  param_named_auto lightpos8 light_position 7
77                   
78                   param_named_auto lightdir1 light_direction 0
79                   param_named_auto lightdir2 light_direction 1
80                   param_named_auto lightdir3 light_direction 2
81                  // param_named_auto lightdir4 light_direction 3
82                  // param_named_auto lightdir5 light_direction 4
83                  // param_named_auto lightdir6 light_direction 5
84                  // param_named_auto lightdir7 light_direction 6
85                  // param_named_auto lightdir8 light_direction 7
86                   
87                   param_named_auto lightscale1 light_power 0
88                   param_named_auto lightscale2 light_power 1
89                   param_named_auto lightscale3 light_power 2
90                  // param_named_auto lightscale4 light_power 3
91                  // param_named_auto lightscale5 light_power 4
92                  // param_named_auto lightscale6 light_power 5
93                  // param_named_auto lightscale7 light_power 6
94                  // param_named_auto lightscale8 light_power 7
95                   
96                   param_named_auto ambientLight ambient_light_colour
97                   
98                   param_named shininess float 20
99                   param_named ambient float4 0.2 0.2 0.2 1
100                   param_named diffuse float4 0.5 0.5 0.5 1
101                   param_named specular float4 1 1 1 1
102                 }
103                 texture_unit 0
104                 {
105                 
106                 }     
107       
108       }
109    }
110}
111
112material screen
113{
114        technique
115        {
116                pass
117                {
118                       
119                   
120                        cull_hardware none
121                        lighting off
122                        ambient 0 0 0 1
123                        diffuse 0 0 0 1
124                        specular 0 0 0 0
125                        emissive 0 0 0
126                        texture_unit
127                        {
128                                texture screen.jpg
129                        }
130                }
131        }
132}
133material screenborder
134{
135        technique
136        {
137                pass
138                {
139               
140                       
141                        ambient 0.37606 0.37606 0.37606 1
142                        diffuse 0.37606 0.37606 0.37606 1
143                        specular 0 0 0 0
144                        emissive 0 0 0
145                       
146                }
147        }
148}
149
150material lambert1 : Difflab/TexturedPhong
151{
152        technique 0
153        {
154                pass 0
155                {
156               
157                        fragment_program_ref
158                        {
159                                param_named shininess float 0
160                                param_named ambient float4 1.0 1.0 1.0 1
161                                param_named diffuse float4 1.0 1.0 1.0 1                               
162                                param_named specular float4 0 0 0 0
163                        }       
164                       
165                        texture_unit 0
166                        {
167                                texture grey.tga                               
168                        }
169                }
170        }
171}
172
173material whitebackground : Difflab/TexturedPhong
174{
175        technique
176        {
177                pass
178                {
179               
180                        fragment_program_ref
181                        {
182                                param_named shininess float 0
183                                param_named ambient float4 1.0 1.0 1.0 1
184                                param_named diffuse float4 1.0 1.0 1.0 1                               
185                                param_named specular float4 0 0 0 0
186                        }       
187                    cull_hardware none             
188                }
189        }
190}
191material laborceil
192{
193        technique
194        {
195                pass
196                {
197                       
198                lighting off
199                        ambient 0 0 0 1
200                        diffuse 0 0 0 1
201                        specular 0 0 0 0
202                        emissive 0 0 0
203                        texture_unit
204                        {
205                                texture laborwall.jpg
206                        }
207                }
208        }
209}
210material laborwall : Difflab/TexturedPhong
211{
212        technique 0
213        {
214                pass 0
215                {
216               
217                       
218                        fragment_program_ref
219                        {
220                                param_named shininess float 0
221                                param_named ambient float4 1.0 1.0 1.0 1
222                                param_named diffuse float4 1.0 1.0 1.0 1                               
223                                param_named specular float4 0 0 0 0
224                        }       
225                       
226                        texture_unit 0
227                        {
228                                texture laborwall.jpg                           
229                        }
230                }
231        }
232}
233
234material lambert6  : Difflab/TexturedPhong
235{
236        technique 0
237        {
238                pass 0
239                {
240                        IllumTechniques
241                {
242                       
243                       
244                        fragment_program_ref
245                        {
246                                param_named shininess float 0
247                                param_named ambient float4 1 1 1 1
248                                param_named diffuse float4 1 1 1 1                             
249                                param_named specular float4 0 0 0 0
250                        }                       
251
252                        texture_unit 0
253                        {
254                                texture striped.jpg                             
255                        }
256                }
257        }
258}
259material doorlamp
260{
261        technique
262        {
263                pass
264                {
265                lighting off
266                        ambient 0 0 0 1
267                        diffuse 0 0 0 1
268                        specular 0 0 0 0
269                        emissive 0 0 0
270                        texture_unit
271                        {
272                        texture lamp.jpg
273                        }
274                }
275        }
276}
277material equipt : Difflab/TexturedPhong
278{
279        technique 0
280        {
281       
282                pass 0
283                {
284                       
285                       
286                        fragment_program_ref
287                        {
288                                param_named shininess float 51.418
289                                param_named ambient float4 0.1282 0.1282 0.1282 1
290                                param_named diffuse float4 0.1282 0.1282 0.1282 1                               
291                                param_named specular float4 1 1 1 1
292                        }                       
293                }
294        }
295}
296material bluelamp
297{
298        technique
299        {
300                pass
301                {
302                       
303                lighting off
304                        ambient 0.5 0.5 0.5 1
305                        diffuse 0.5 0.5 0.5 1
306                        specular 0.5 0.5 0.5 20
307                        emissive 0 0 0
308                        texture_unit
309                        {
310                        texture bluelamp.jpg
311                        }
312                }
313               
314        }
315}
Note: See TracBrowser for help on using the repository browser.