source: GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/GameTools_HPS.material @ 1879

Revision 1879, 5.6 KB checked in by szirmay, 18 years ago (diff)
Line 
1vertex_program HPS_Smoke_S_VS hlsl
2{
3        source GameTools_HPS_Smoke_S.hlsl
4        entry_point HPS_Smoke_S_VS
5        target vs_3_0
6}
7
8fragment_program HPS_Smoke_S_PS hlsl
9{
10        source GameTools_HPS_Smoke_S.hlsl
11        entry_point HPS_Smoke_S_PS
12        target ps_3_0
13}
14
15
16
17material HPS_SMOKE_S
18{
19        technique
20        {
21                pass
22                {                       
23                        vertex_program_ref HPS_Smoke_S_VS
24                        {       
25                                param_named_auto worldViewProj worldviewproj_matrix
26                                param_named_auto worldView worldview_matrix
27                                param_named_auto Proj projection_matrix     
28                        }
29                        fragment_program_ref  HPS_Smoke_S_PS
30                        {
31                                param_named_auto Proj projection_matrix
32                        }
33                       
34                        texture_unit
35                        {
36                                texture smoke2.jpg
37                        }
38                       
39                        depth_check off
40                        scene_blend_op max
41                        scene_blend_op_alpha add
42                        scene_blend_alpha one one_minus_src_alpha
43
44                }
45        }
46}
47
48
49vertex_program HPS_Smoke_L_VS hlsl
50{
51        source GameTools_HPS_Smoke_L.hlsl
52        entry_point HPS_Smoke_L_VS
53        target vs_3_0
54}
55
56fragment_program HPS_Smoke_L_PS hlsl
57{
58        source GameTools_HPS_Smoke_L.hlsl
59        entry_point HPS_Smoke_L_PS
60        target ps_3_0
61}
62
63
64
65material HPS_SMOKE_L
66{
67        technique
68        {
69                pass
70                {       
71                        IllumTechniques
72                        {
73                                RenderTechnique HPS
74                                {
75                                        particle_script GameTools/Little
76                                        perspective false
77                                        vparam_radius baseRadius                                                                       
78                                }
79                                                               
80                        }
81                               
82                        vertex_program_ref HPS_Smoke_L_VS
83                        {       
84                                param_named_auto worldViewProj worldviewproj_matrix
85                                param_named_auto worldView worldview_matrix
86                                param_named_auto Proj projection_matrix                                     
87                        }
88                        fragment_program_ref  HPS_Smoke_L_PS
89                        {
90                                param_named_auto Proj projection_matrix
91                        }
92                       
93                        depth_check off                 
94                        scene_blend alpha_blend
95                       
96                        //impostor texture
97                        texture_unit
98                        {
99                               
100                        }
101                       
102
103                }
104        }
105}
106
107vertex_program HPS_Smoke_L_Depth_VS hlsl
108{
109        source GameTools_HPS_Smoke_L_Depth.hlsl
110        entry_point HPS_Smoke_L_Depth_VS
111        target vs_3_0
112}
113
114fragment_program HPS_Smoke_L_Depth_PS hlsl
115{
116        source GameTools_HPS_Smoke_L_Depth.hlsl
117        entry_point HPS_Smoke_L_Depth_PS
118        target ps_3_0
119}
120
121material HPS_SMOKE_L_Depth
122{
123        technique
124        {
125                pass
126                {       
127                        IllumTechniques
128                        {
129                                RenderTechnique HPS
130                                {
131                                        particle_script GameTools/FogLittle
132                                        perspective false
133                                        vparam_radius baseRadius
134                                        update_interval 1                               
135                                }
136                                RenderTechnique SphericalBillboard
137                                {
138                                        texture_unit_id         1                                       
139                                }                                                               
140                        }
141                               
142                        vertex_program_ref HPS_Smoke_L_Depth_VS
143                        {       
144                                param_named_auto worldViewProj worldviewproj_matrix
145                                param_named_auto worldView worldview_matrix
146                                param_named_auto worldViewInv inverse_worldview_matrix
147                                param_named_auto Proj projection_matrix
148                                param_named_auto width viewport_width   
149                                param_named_auto height viewport_height                                                             
150                        }
151                        fragment_program_ref  HPS_Smoke_L_Depth_PS
152                        {
153                                param_named_auto Proj projection_matrix
154                                param_named_auto farplane far_clip_distance
155                                param_named_auto nearplane near_clip_distance
156                               
157                               
158                        }
159                       
160                        depth_check off                 
161                        depth_write off
162                        scene_blend alpha_blend
163                       
164                        //impostor texture
165                        texture_unit
166                        {
167                                //filtering none
168                        }
169                        //scene depth texture
170                        texture_unit
171                        {
172                                filtering none
173                        }
174                }
175        }
176}
177
178vertex_program HPS_Smoke_L_Depth_Illum_VS hlsl
179{
180        source GameTools_HPS_Smoke_L_Depth.hlsl
181        entry_point HPS_Smoke_L_Depth_Illum_VS
182        target vs_3_0
183}
184
185fragment_program HPS_Smoke_L_Depth_Illum_PS hlsl
186{
187        source GameTools_HPS_Smoke_L_Depth.hlsl
188        entry_point HPS_Smoke_L_Depth_Illum_PS
189        target ps_3_0
190}
191
192
193material HPS_SMOKE_L_Depth_Illum
194{
195        technique
196        {
197                pass
198                {       
199                        IllumTechniques
200                        {
201                                RenderTechnique HPS
202                                {
203                                        particle_script GameTools/Little
204                                        perspective false
205                                        vparam_radius baseRadius
206                                        update_interval 1                               
207                                }
208                                RenderTechnique SphericalBillboard
209                                {
210                                        texture_unit_id         1                                       
211                                }                       
212                                RenderTechnique IllumVolume
213                                {
214                                        update_interval 1
215                                        //depths 4
216                                        resolution 128
217                                }       
218                        }
219                               
220                        vertex_program_ref HPS_Smoke_L_Depth_Illum_VS
221                        {       
222                                param_named_auto worldViewProj worldviewproj_matrix
223                                param_named_auto worldView worldview_matrix
224                                param_named_auto worldViewInv inverse_worldview_matrix
225                                param_named_auto Proj projection_matrix
226                                param_named_auto width viewport_width   
227                                param_named_auto height viewport_height                                                             
228                        }
229                        fragment_program_ref  HPS_Smoke_L_Depth_Illum_PS
230                        {
231                                param_named_auto Proj projection_matrix
232                                param_named_auto farplane far_clip_distance
233                               
234                               
235                        }
236                       
237                        depth_check off                 
238                        depth_write off
239                        scene_blend alpha_blend
240                       
241                        //impostor texture
242                        texture_unit
243                        {
244                                //filtering none
245                        }
246                        //scene depth texture
247                        texture_unit
248                        {
249                                filtering none
250                        }
251                        //lightVolume
252                        texture_unit
253                        {
254                                //filtering none
255                        }
256
257                }
258        }
259}
260
261vertex_program Smoke_IllumVolume_VS hlsl
262{
263        source GameTools_Smoke_IllumVolume.hlsl
264        entry_point SmokeIllumVolumeVS
265        target vs_3_0
266}
267
268fragment_program HPS_IllumVolume_PS hlsl
269{
270        source GameTools_Smoke_IllumVolume.hlsl
271        entry_point SmokeIllumVolumePS
272        target ps_3_0
273}
274
275material Smoke_IllumVolume
276{
277
278   technique
279   {
280        pass
281      {
282               
283                cull_hardware none
284                cull_software none
285                lighting off
286                scene_blend zero one_minus_src_colour
287                depth_write off
288
289                vertex_program_ref Smoke_IllumVolume_VS
290                        {       
291                                param_named_auto worldViewProj worldviewproj_matrix
292                                param_named_auto worldView worldview_matrix
293                                param_named_auto Proj projection_matrix     
294                        }
295                fragment_program_ref  HPS_IllumVolume_PS
296                        {
297                         
298                        }
299
300                texture_unit
301                {
302                texture pamacs.dds
303                }
304
305       }
306    }
307}
308
Note: See TracBrowser for help on using the repository browser.