source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/demos/OgreDemos/media/materials/scripts/difflab.material @ 3255

Revision 3255, 6.1 KB checked in by szirmay, 15 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                   texture white.tga
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 0
176        {
177                pass 0
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                       
241                        fragment_program_ref
242                        {
243                                param_named shininess float 0
244                                param_named ambient float4 1 1 1 1
245                                param_named diffuse float4 1 1 1 1                             
246                                param_named specular float4 0 0 0 0
247                        }                       
248
249                        texture_unit 0
250                        {
251                                texture striped.jpg                             
252                        }
253                }
254        }
255}
256material doorlamp
257{
258        technique
259        {
260                pass
261                {
262                lighting off
263                        ambient 0 0 0 1
264                        diffuse 0 0 0 1
265                        specular 0 0 0 0
266                        emissive 0 0 0
267                        texture_unit
268                        {
269                        texture lamp.jpg
270                        }
271                }
272        }
273}
274material equipt : Difflab/TexturedPhong
275{
276        technique 0
277        {
278       
279                pass 0
280                {
281                       
282                       
283                        fragment_program_ref
284                        {
285                                param_named shininess float 51.418
286                                param_named ambient float4 0.1282 0.1282 0.1282 1
287                                param_named diffuse float4 0.1282 0.1282 0.1282 1                               
288                                param_named specular float4 1 1 1 1
289                        }                       
290                }
291        }
292}
293material bluelamp
294{
295        technique
296        {
297                pass
298                {
299                       
300                lighting off
301                        ambient 0.5 0.5 0.5 1
302                        diffuse 0.5 0.5 0.5 1
303                        specular 0.5 0.5 0.5 20
304                        emissive 0 0 0
305                        texture_unit
306                        {
307                        texture bluelamp.jpg
308                        }
309                }
310               
311        }
312}
Note: See TracBrowser for help on using the repository browser.