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

Revision 1683, 5.2 KB checked in by szirmay, 18 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.3 0.3 0.4
119                        diffuse 0.9 0.9 1.0
120                        //lighting off
121                        IllumTechniques
122                        {                       
123                                //RenderTechnique CausticReciever
124                                //{
125                                //      max_caster_count        10
126                                //}
127                                RenderTechnique DepthShadowReciever
128                                {
129                                }                               
130                        }               
131                }
132        }
133}
134
135
136
137material GameTools/UVShader
138{
139   technique
140   {
141        pass
142      {
143                vertex_program_ref GameTools/UV_VS
144         {       
145            param_named_auto worldViewProj worldviewproj_matrix
146         }
147                fragment_program_ref GameTools/UV_PS
148         {
149                        param_named_auto ID custom 0
150         }
151       
152
153       }
154    }
155}
156
157material GameTools/DistanceShader
158{
159
160   technique
161   {
162        pass
163      {
164         vertex_program_ref GameTools/DistanceVS
165         {       
166            param_named_auto worldView worldview_matrix
167            param_named_auto worldViewProj worldviewproj_matrix
168         }
169         fragment_program_ref  GameTools/DistancePS
170         {
171                 
172         }
173
174       }
175    }
176}
177
178material GameTools/SceneCameraDepthShader
179{
180
181   technique
182   {
183      scene_blend none
184
185      pass
186      {
187         vertex_program_ref GameTools/SceneCameraDepthVS
188         {       
189            param_named_auto worldView worldview_matrix
190            param_named_auto worldViewProj worldviewproj_matrix
191            param_named_auto farplane far_clip_distance 
192         }
193         fragment_program_ref  GameTools/SceneDepthPS
194         {
195           
196         }
197
198       }
199    }
200}
201
202material GameTools/FocusingShader
203{
204
205   technique
206   {
207      scene_blend none
208
209      pass
210      {
211         vertex_program_ref GameTools/FocusingVS
212         {       
213                        param_named_auto world          world_matrix
214            param_named_auto worldViewProj worldviewproj_matrix
215                        param_named lightTransform matrix4x4     
216         }
217         fragment_program_ref  GameTools/FocusingPS
218         {
219           
220         }
221
222       }
223    }
224}
225
226material GameTools/ShadowMapDepth
227{
228
229   technique
230   {
231      scene_blend none
232
233      pass
234      {
235                cull_hardware anticlockwise
236                //cull_hardware none
237               
238                vertex_program_ref GameTools/ShadowMap/DepthVS
239        {       
240          param_named_auto worldViewProj worldviewproj_matrix           
241            }
242                fragment_program_ref  GameTools/ShadowMap/DepthPS
243        {
244                       
245        }
246       
247       }
248    }
249}
250
251material GameTools/ShadowMapDistance
252{
253
254   technique
255   {
256      scene_blend none
257
258      pass
259      {
260                cull_hardware anticlockwise
261                //cull_hardware none
262               
263                vertex_program_ref GameTools/ShadowMap/DistVS
264        {       
265          param_named_auto worldViewProj worldviewproj_matrix
266          param_named_auto worldView worldview_matrix         
267            }
268                fragment_program_ref  GameTools/ShadowMap/DistPS
269        {
270                        param_named_auto farPlane far_clip_distance
271        }
272       
273       }
274    }
275}
276
277
278material GameTools/Blur
279{
280
281   technique
282   {
283     
284      pass
285      {                 
286                vertex_program_ref GameTools/BlurVS
287        {       
288                     
289            }
290                fragment_program_ref  GameTools/BlurPS
291        {
292                        param_named_auto width viewport_width
293                        param_named_auto height viewport_height
294        }
295        texture_unit
296        {
297                        filtering bilinear
298        }
299       
300       }
301    }
302}
303
304vertex_program PhaseVS hlsl
305{
306        source GameTools_Phase.hlsl
307        entry_point PhaseVS
308        target vs_2_0
309}
310
311fragment_program Phase_HenyeyGreenSteinPS hlsl
312{
313        source GameTools_Phase.hlsl
314        entry_point HenyeyGreensteinPS
315        target ps_2_0
316}
317
318material Phase_HenyeyGreenStein
319{
320
321   technique
322   {
323     
324      pass
325      {                 
326                vertex_program_ref PhaseVS
327                {       
328                     
329                }
330                fragment_program_ref  Phase_HenyeyGreenSteinPS
331                {
332                               
333                }               
334       
335       }
336    }
337}
338
339
340
Note: See TracBrowser for help on using the repository browser.