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

Revision 1424, 4.2 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 pamacs.dds
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_Illum_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_Illum_PS
118        target ps_3_0
119}
120
121
122
123material HPS_SMOKE_L_Depth
124{
125        technique
126        {
127                pass
128                {       
129                        IllumTechniques
130                        {
131                                RenderTechnique HPS
132                                {
133                                        particle_script GameTools/Little
134                                        perspective false
135                                        vparam_radius baseRadius
136                                        update_interval 1                               
137                                }
138                                RenderTechnique SphericalBillboard
139                                {
140                                        texture_unit_id         1                                       
141                                }                       
142                                RenderTechnique IllumVolume
143                                {
144                                        update_interval 1
145                                        //depths 4
146                                        resolution 128
147                                }       
148                        }
149                               
150                        vertex_program_ref HPS_Smoke_L_Depth_VS
151                        {       
152                                param_named_auto worldViewProj worldviewproj_matrix
153                                param_named_auto worldView worldview_matrix
154                                param_named_auto worldViewInv inverse_worldview_matrix
155                                param_named_auto Proj projection_matrix
156                                param_named_auto width viewport_width   
157                                param_named_auto height viewport_height                                                             
158                        }
159                        fragment_program_ref  HPS_Smoke_L_Depth_PS
160                        {
161                                param_named_auto Proj projection_matrix
162                                param_named_auto farplane far_clip_distance
163                               
164                               
165                        }
166                       
167                        depth_check off                 
168                        depth_write off
169                        scene_blend alpha_blend
170                       
171                        //impostor texture
172                        texture_unit
173                        {
174                                //filtering none
175                        }
176                        //scene depth texture
177                        texture_unit
178                        {
179                                filtering none
180                        }
181                        //lightVolume
182                        texture_unit
183                        {
184                                //filtering none
185                        }
186
187                }
188        }
189}
190
191vertex_program Smoke_IllumVolume_VS hlsl
192{
193        source GameTools_Smoke_IllumVolume.hlsl
194        entry_point SmokeIllumVolumeVS
195        target vs_3_0
196}
197
198fragment_program HPS_IllumVolume_PS hlsl
199{
200        source GameTools_Smoke_IllumVolume.hlsl
201        entry_point SmokeIllumVolumePS
202        target ps_3_0
203}
204
205material Smoke_IllumVolume
206{
207
208   technique
209   {
210        pass
211      {
212               
213                cull_hardware none
214                cull_software none
215                lighting off
216                scene_blend zero one_minus_src_colour
217                depth_write off
218
219                vertex_program_ref Smoke_IllumVolume_VS
220                        {       
221                                param_named_auto worldViewProj worldviewproj_matrix
222                                param_named_auto worldView worldview_matrix
223                                param_named_auto Proj projection_matrix     
224                        }
225                fragment_program_ref  HPS_IllumVolume_PS
226                        {
227                         
228                        }
229
230                texture_unit
231                {
232                texture pamacs.dds
233                }
234
235       }
236    }
237}
238
Note: See TracBrowser for help on using the repository browser.