source: GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/GameTools.material @ 2030

Revision 2030, 6.3 KB checked in by szirmay, 17 years ago (diff)
Line 
1material Flare
2{
3        technique
4        {
5                pass
6                {
7                        //cull_hardware none                   
8                        lighting off
9                        scene_blend add
10                        //scene_blend_op add
11                        //scene_blend_op_alpha add
12                        //scene_blend_alpha add
13                        //depth_check off
14                        depth_write off
15
16                        texture_unit
17                        {
18                                texture flare.png
19                        }
20                }
21        }
22}
23
24
25material Examples/EveningSkyBox
26{
27        technique
28        {
29                pass
30                {
31                        lighting off
32                        depth_write off
33
34                        texture_unit
35                        {
36                                cubic_texture stormy.jpg separateUV
37                                tex_address_mode clamp
38                        }
39                }
40        }
41}
42
43vertex_program TexturedVS hlsl
44{
45        source textured.hlsl
46        entry_point vs
47        target vs_2_0
48}
49
50fragment_program TexturedPS hlsl
51{
52        source textured.hlsl
53        entry_point ps
54        target ps_3_0
55}
56
57material Examples/MorningSkyBox
58{
59        technique
60        {
61                pass
62                {
63                        vertex_program_ref TexturedVS
64                        {       
65                                param_named_auto worldViewProj worldviewproj_matrix     
66                        }
67                        fragment_program_ref TexturedPS
68                        {
69                       
70                        }
71                        depth_write off
72
73                        texture_unit
74                        {
75                                cubic_texture Forest.dds separateUV
76                                //cubic_texture morning.jpg separateUV
77                                tex_address_mode clamp
78                        }
79                }
80        }
81}
82
83material GameTools/Rockwall
84{
85        technique
86        {
87                pass
88                {
89                        lighting off
90                        texture_unit
91                        {
92                                texture rockwall.tga
93                                //env_map cubic_normal
94                                //vertex_texture true
95                        }
96                }
97        }
98}
99
100material GameTools/Standard
101{
102        technique
103        {
104                pass
105                {
106                        ambient 0.1 0.11 0.15
107                        diffuse 0.8 0.9 1.0
108                }
109        }
110}
111
112material TestPlane
113{
114        technique
115        {
116                pass
117                {
118                        ambient 0.8 0.8 0.8
119                        diffuse 0.0 0.0 0.0
120                        specular 0.0 0.0 0.0
121                        //lighting off
122                        IllumTechniques
123                        {                       
124                                RenderTechnique CausticReciever
125                                {
126                                        max_caster_count        10
127                                }
128                                //RenderTechnique DepthShadowReciever
129                                //{
130                               
131                                //}                     
132                        }
133                        texture_unit
134                        {
135                                texture rockWall.tga
136                        }
137                               
138                }
139        }
140}
141
142
143
144material GameTools/UVShader
145{
146   technique
147   {
148        pass
149      {
150                vertex_program_ref GameTools/UV_VS
151         {       
152            param_named_auto worldViewProj worldviewproj_matrix
153         }
154                fragment_program_ref GameTools/UV_PS
155         {
156                        param_named_auto ID custom 0
157         }
158       
159
160       }
161    }
162}
163
164material GameTools/DistanceShader
165{
166
167   technique
168   {
169        pass
170      {
171         vertex_program_ref GameTools/DistanceVS
172         {       
173            param_named_auto worldView worldview_matrix
174            param_named_auto worldViewProj worldviewproj_matrix
175         }
176         fragment_program_ref  GameTools/DistancePS
177         {
178                 
179         }
180
181       }
182    }
183}
184
185material GameTools/SceneCameraDepthShader
186{
187
188   technique
189   {
190      scene_blend none
191
192      pass
193      {
194         vertex_program_ref GameTools/SceneCameraDepthVS
195         {       
196            param_named_auto worldView worldview_matrix
197            param_named_auto worldViewProj worldviewproj_matrix
198            param_named_auto farplane far_clip_distance 
199         }
200         fragment_program_ref  GameTools/SceneDepthPS
201         {
202           
203         }
204
205       }
206    }
207}
208
209material GameTools/FocusingShader
210{
211
212   technique
213   {
214      scene_blend none
215
216      pass
217      {
218         vertex_program_ref GameTools/FocusingVS
219         {       
220                        param_named_auto world          world_matrix
221            param_named_auto worldViewProj worldviewproj_matrix
222                        param_named lightTransform matrix4x4     
223         }
224         fragment_program_ref  GameTools/FocusingPS
225         {
226           
227         }
228
229       }
230    }
231}
232
233material GameTools/ShadowMapDepth
234{
235
236   technique
237   {
238      scene_blend none
239
240      pass
241      {
242                cull_hardware anticlockwise
243                //cull_hardware none
244               
245                vertex_program_ref GameTools/ShadowMap/DepthVS
246        {       
247          param_named_auto worldViewProj worldviewproj_matrix           
248            }
249                fragment_program_ref  GameTools/ShadowMap/DepthPS
250        {
251                       
252        }
253       
254       }
255    }
256}
257
258material GameTools/ShadowMapDistance
259{
260
261   technique
262   {
263      scene_blend none
264
265      pass
266      {
267                cull_hardware anticlockwise
268                //cull_hardware none
269               
270                vertex_program_ref GameTools/ShadowMap/DistVS
271        {       
272          param_named_auto worldViewProj worldviewproj_matrix
273          param_named_auto worldView worldview_matrix         
274            }
275                fragment_program_ref  GameTools/ShadowMap/DistPS
276        {
277                        param_named_auto farPlane far_clip_distance
278        }
279       
280       }
281    }
282}
283
284
285material GameTools/Blur
286{
287
288   technique
289   {
290     
291      pass
292      {                 
293                vertex_program_ref GameTools/BlurVS
294        {       
295                     
296            }
297                fragment_program_ref  GameTools/BlurPS
298        {
299                        param_named_auto width viewport_width
300                        param_named_auto height viewport_height
301        }
302        texture_unit
303        {
304                        filtering bilinear
305        }
306       
307       }
308    }
309}
310
311material GameTools/BlurLightVolume
312{
313
314   technique
315   {
316     
317      pass
318      {
319        depth_check off
320        cull_hardware none
321        scene_blend alpha_blend
322               
323                vertex_program_ref GameTools/BlurVS
324        {       
325                     
326            }
327                fragment_program_ref  GameTools/CopyPS
328        {
329            param_named_auto width viewport_width
330                        param_named_auto height viewport_height
331                        param_named alpha float 0.05   
332        }
333        texture_unit
334        {
335                        filtering bilinear
336        }
337       
338       }
339    }
340}
341
342material GameTools/BlurCubeFace
343{
344
345   technique
346   {
347     
348      pass
349      {                 
350                vertex_program_ref GameTools/BlurCubeFaceVS
351        {       
352                     
353            }
354                fragment_program_ref  GameTools/BlurCubeFacePS
355        {
356                        param_named_auto width viewport_width
357                        param_named_auto height viewport_height
358                        param_named face float 0
359        }
360        texture_unit
361        {
362                        filtering bilinear
363        }
364       
365       }
366    }
367}
368
369vertex_program PhaseVS hlsl
370{
371        source GameTools_Phase.hlsl
372        entry_point PhaseVS
373        target vs_2_0
374}
375
376fragment_program Phase_HenyeyGreenSteinPS hlsl
377{
378        source GameTools_Phase.hlsl
379        entry_point HenyeyGreensteinPS
380        target ps_2_0
381}
382
383material Phase_HenyeyGreenStein
384{
385
386   technique
387   {
388     
389      pass
390      {                 
391                vertex_program_ref PhaseVS
392                {       
393                     
394                }
395                fragment_program_ref  Phase_HenyeyGreenSteinPS
396                {
397                               
398                }               
399       
400       }
401    }
402}
403
404
405
Note: See TracBrowser for help on using the repository browser.