source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/precompiled/app/OgreIllumModule_Resources/materials/GTPParticles/GTP_Particles.material @ 3255

Revision 3255, 7.3 KB checked in by szirmay, 15 years ago (diff)
Line 
1material GTP/Particles/SpriteShader
2{
3   technique
4   {
5        pass
6      {
7                cull_hardware none
8                depth_check off
9                scene_blend add
10                depth_write off
11                vertex_program_ref GTP/Particles/SpriteVS
12                {       
13                        param_named_auto worldView worldview_matrix
14                        param_named_auto Proj projection_matrix     
15                }
16                fragment_program_ref  GTP/Particles/SpritePS
17                {
18                 
19                }
20                texture_unit
21                {
22          texture flare.png
23                }
24       }
25    }
26}
27
28
29material GTP/SBB/Basic
30{
31   technique
32   {
33    pass
34    {   
35        IllumTechniques
36        {
37                RenderTechnique SphericalBillboard
38                {
39                                texture_unit_id         1                                       
40                }
41        }         
42        scene_blend src_alpha one
43        //scene_blend src_alpha one_minus_src_alpha
44        depth_write off
45        depth_check off
46        vertex_program_ref GTP/Particles/SB_Sprite_VS
47        {       
48            param_named_auto worldView worldview_matrix
49            param_named_auto Proj projection_matrix
50            param_named_auto width viewport_width       
51            param_named_auto height viewport_height
52        }
53        fragment_program_ref  GTP/Particles/SB_Sprite_PS
54        {
55            param_named_auto farplane far_clip_distance   
56            param_named_auto nearplane near_clip_distance
57//          param_named color float4 1 1 1 0.025
58            param_named color float4 1 1 1 0.05
59         }
60         texture_unit
61         {
62           //anim_texture smokealpha.tga 32 2.0
63           texture flare.png
64         }
65         //scene depth texture
66         texture_unit
67         {
68           filtering none
69         }     
70         texture_unit
71         {
72           texture planck1D.tga
73         }
74    }
75   }
76}
77
78material GTP/SBB/Illum
79{
80   technique
81   {
82    pass
83    {   
84        IllumTechniques
85        {
86                RenderTechnique SphericalBillboard
87                {
88                        texture_unit_id         1                                       
89                }
90                RenderTechnique IllumVolume
91                {
92                    material GTP/HPS/Smoke_IllumVolume
93                    update_interval 1
94                    texture_unit_id 2
95                    resolution 128
96                    lightmatrix_param_name lightViewProj
97                }
98        }         
99        //scene_blend src_alpha one
100        scene_blend src_alpha one_minus_src_alpha
101        depth_write off
102        depth_check off
103        vertex_program_ref GTP/Particles/SBB_Illum_VS
104        {       
105            param_named_auto worldView worldview_matrix
106            param_named_auto worldViewInv inverse_worldview_matrix                             
107            param_named_auto Proj projection_matrix
108            param_named_auto width viewport_width       
109            param_named_auto height viewport_height
110        }
111        fragment_program_ref  GTP/Particles/SBB_Illum_PS
112        {
113            param_named_auto farplane far_clip_distance   
114            param_named_auto nearplane near_clip_distance
115            param_named color float4 1 1 1 0.1
116         }
117         texture_unit
118         {
119           anim_texture smokealpha.tga 32 2.0
120           //texture flare.png
121         }
122         //scene depth texture
123         texture_unit
124         {
125           filtering none
126         }     
127         texture_unit
128         {
129           
130         }
131    }
132   }
133}
134
135material GTP/HPS/Smoke_S
136{
137        technique
138        {
139                pass
140                {       
141                        depth_check off
142                        scene_blend_op max
143                        scene_blend_op_alpha add
144                        scene_blend_alpha one one_minus_src_alpha               
145                        vertex_program_ref GTP/HPS/Small_VS
146                        {       
147                                param_named_auto worldView worldview_matrix
148                                param_named_auto Proj projection_matrix   
149                        }
150                        fragment_program_ref  GTP/HPS/Small_PS
151                        {
152                                param_named_auto Proj projection_matrix
153                        }                       
154                        texture_unit
155                        {
156                                texture smoke2.jpg
157                        }
158                }
159        }
160}
161
162material GTP/HPS/Smoke_L
163{
164        technique
165        {
166                pass
167                {       
168                        IllumTechniques
169                        {
170                                RenderTechnique HPS
171                                {
172                                        particle_script GTP/HPS/Smoke_Little
173                                        perspective false
174                                        vparam_radius baseRadius                                                                       
175                                }                                                               
176                        }                               
177                        depth_check off                 
178                        scene_blend alpha_blend
179                        vertex_program_ref GTP/HPS/Large_VS
180                        {       
181                                param_named_auto worldView worldview_matrix
182                                param_named_auto Proj projection_matrix                                     
183                        }
184                        fragment_program_ref  GTP/HPS/Large_PS
185                        {
186                       
187                        }
188                        //impostor texture
189                        texture_unit
190                        {
191                               
192                        }
193                }
194        }
195}
196
197material GTP/HPS/Smoke_L_Depth
198{
199        technique
200        {
201                pass
202                {       
203                        IllumTechniques
204                        {
205                                RenderTechnique HPS
206                                {
207                                        particle_script GTP/HPS/Smoke_Little
208                                        perspective false
209                                        vparam_radius baseRadius
210                                        update_interval 1                               
211                                }
212                                RenderTechnique SphericalBillboard
213                                {
214                                        texture_unit_id         1                                       
215                                }                                                               
216                        }                               
217                        depth_check off                 
218                        depth_write off
219                        scene_blend alpha_blend
220                        vertex_program_ref GTP/HPS/Large_Depth_VS
221                        {       
222                                param_named_auto worldView worldview_matrix
223                                param_named_auto Proj projection_matrix
224                        }
225                        fragment_program_ref  GTP/HPS/Large_Depth_PS
226                        {
227                                param_named_auto farplane far_clip_distance
228                                param_named_auto nearplane near_clip_distance
229                                param_named color float4 1 1 1 0.5                             
230                        }                       
231                        //impostor texture
232                        texture_unit
233                        {
234                                //filtering none
235                        }
236                        //scene depth texture
237                        texture_unit
238                        {
239                                filtering none
240                        }
241                }
242        }
243}
244
245material GTP/HPS/Smoke_L_Depth_Illum
246{
247        technique
248        {
249                pass
250                {       
251                        IllumTechniques
252                        {
253                                RenderTechnique HPS
254                                {
255                                        particle_script GTP/HPS/Smoke_Little
256                                        perspective false
257                                        vparam_radius baseRadius
258                                        update_interval 1                               
259                                }
260                                RenderTechnique SphericalBillboard
261                                {
262                                        texture_unit_id         1                                       
263                                }                       
264                                RenderTechnique IllumVolume
265                                {
266                                    material GTP/HPS/Smoke_IllumVolume
267                                        update_interval 1
268                                        texture_unit_id 2
269                                        resolution 128
270                                        lightmatrix_param_name lightViewProj
271                                }
272                        }                               
273                        depth_check off                 
274                        depth_write off
275                        scene_blend alpha_blend
276                        vertex_program_ref GTP/HPS/Large_Depth_Illum_VS
277                        {       
278                                param_named_auto worldView worldview_matrix
279                                param_named_auto worldViewInv inverse_worldview_matrix
280                                param_named_auto Proj projection_matrix
281                                param_named_auto width viewport_width   
282                                param_named_auto height viewport_height
283                                param_named baseRadius float 1                                                                                     
284                        }
285                        fragment_program_ref GTP/HPS/Large_Depth_Illum_PS
286                        {
287                        //      param_named_auto farplane far_clip_distance
288                        //      param_named_auto nearplane near_clip_distance
289                        }                       
290                        //impostor texture
291                        texture_unit
292                        {
293                                //filtering none
294                        }
295                        //scene depth texture
296                        texture_unit
297                        {
298                                filtering none
299                        }
300                        //Ilumination volume
301                        texture_unit
302                        {
303                                //filtering none
304                        }
305                }
306        }
307}
308
309
310
311material GTP/HPS/Smoke_IllumVolume
312{
313   technique
314   {
315        pass
316      {                 
317                cull_hardware none
318                cull_software none
319                lighting off
320                scene_blend zero one_minus_src_colour
321                depth_write off
322
323                vertex_program_ref GTP/HPS/IllumVolume_VS
324                {       
325                        param_named_auto worldView worldview_matrix
326                        param_named_auto Proj projection_matrix
327                }
328                fragment_program_ref  GTP/HPS/IllumVolume_PS
329                {
330                        //param_named density float 0.05
331                        //param_named density float 0.5
332                        param_named density float 1
333                }
334                texture_unit
335                {
336                        texture pamacs.dds
337                }
338       }
339    }
340}
341
342
343material GTP/Particles/BlurLightVolume
344{
345
346   technique
347   {
348     
349      pass
350      {
351        depth_check off
352        cull_hardware none
353        scene_blend alpha_blend
354               
355        vertex_program_ref GTP/Basic/FSQuad_VS
356        {       
357                     
358        }
359        fragment_program_ref  GTP/Basic/FSQuadCopy_PS
360        {
361            param_named_auto width viewport_width
362            param_named_auto height viewport_height
363            //param_named alpha float 1
364            param_named alpha float 0.05
365        }
366        texture_unit
367        {
368            filtering bilinear
369        }
370       
371       }
372    }
373}
374
Note: See TracBrowser for help on using the repository browser.