1 | material 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 |
|
---|
29 | material 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 3 3 3 1
|
---|
58 | }
|
---|
59 | texture_unit
|
---|
60 | {
|
---|
61 | anim_texture smokealpha.tga 32 2.0
|
---|
62 | //texture flare.png
|
---|
63 | }
|
---|
64 | //scene depth texture
|
---|
65 | texture_unit
|
---|
66 | {
|
---|
67 | filtering none
|
---|
68 | }
|
---|
69 | texture_unit
|
---|
70 | {
|
---|
71 | texture planck.tga
|
---|
72 | }
|
---|
73 | }
|
---|
74 | }
|
---|
75 | }
|
---|
76 |
|
---|
77 | material GTP/HPS/Smoke_S
|
---|
78 | {
|
---|
79 | technique
|
---|
80 | {
|
---|
81 | pass
|
---|
82 | {
|
---|
83 | depth_check off
|
---|
84 | scene_blend_op max
|
---|
85 | scene_blend_op_alpha add
|
---|
86 | scene_blend_alpha one one_minus_src_alpha
|
---|
87 | vertex_program_ref GTP/HPS/Small_VS
|
---|
88 | {
|
---|
89 | param_named_auto worldView worldview_matrix
|
---|
90 | param_named_auto Proj projection_matrix
|
---|
91 | }
|
---|
92 | fragment_program_ref GTP/HPS/Small_PS
|
---|
93 | {
|
---|
94 | param_named_auto Proj projection_matrix
|
---|
95 | }
|
---|
96 | texture_unit
|
---|
97 | {
|
---|
98 | texture smoke2.jpg
|
---|
99 | }
|
---|
100 | }
|
---|
101 | }
|
---|
102 | }
|
---|
103 |
|
---|
104 | material GTP/HPS/Smoke_L
|
---|
105 | {
|
---|
106 | technique
|
---|
107 | {
|
---|
108 | pass
|
---|
109 | {
|
---|
110 | IllumTechniques
|
---|
111 | {
|
---|
112 | RenderTechnique HPS
|
---|
113 | {
|
---|
114 | particle_script GTP/HPS/Smoke_Little
|
---|
115 | perspective false
|
---|
116 | vparam_radius baseRadius
|
---|
117 | }
|
---|
118 | }
|
---|
119 | depth_check off
|
---|
120 | scene_blend alpha_blend
|
---|
121 | vertex_program_ref GTP/HPS/Large_VS
|
---|
122 | {
|
---|
123 | param_named_auto worldView worldview_matrix
|
---|
124 | param_named_auto Proj projection_matrix
|
---|
125 | }
|
---|
126 | fragment_program_ref GTP/HPS/Large_PS
|
---|
127 | {
|
---|
128 |
|
---|
129 | }
|
---|
130 | //impostor texture
|
---|
131 | texture_unit
|
---|
132 | {
|
---|
133 |
|
---|
134 | }
|
---|
135 | }
|
---|
136 | }
|
---|
137 | }
|
---|
138 |
|
---|
139 | material GTP/HPS/Smoke_L_Depth
|
---|
140 | {
|
---|
141 | technique
|
---|
142 | {
|
---|
143 | pass
|
---|
144 | {
|
---|
145 | IllumTechniques
|
---|
146 | {
|
---|
147 | RenderTechnique HPS
|
---|
148 | {
|
---|
149 | particle_script GTP/HPS/Smoke_Little
|
---|
150 | perspective false
|
---|
151 | vparam_radius baseRadius
|
---|
152 | update_interval 1
|
---|
153 | }
|
---|
154 | RenderTechnique SphericalBillboard
|
---|
155 | {
|
---|
156 | texture_unit_id 1
|
---|
157 | }
|
---|
158 | }
|
---|
159 | depth_check off
|
---|
160 | depth_write off
|
---|
161 | scene_blend alpha_blend
|
---|
162 | vertex_program_ref GTP/HPS/Large_Depth_VS
|
---|
163 | {
|
---|
164 | param_named_auto worldView worldview_matrix
|
---|
165 | param_named_auto Proj projection_matrix
|
---|
166 | }
|
---|
167 | fragment_program_ref GTP/HPS/Large_Depth_PS
|
---|
168 | {
|
---|
169 | param_named_auto farplane far_clip_distance
|
---|
170 | param_named_auto nearplane near_clip_distance
|
---|
171 | }
|
---|
172 | //impostor texture
|
---|
173 | texture_unit
|
---|
174 | {
|
---|
175 | //filtering none
|
---|
176 | }
|
---|
177 | //scene depth texture
|
---|
178 | texture_unit
|
---|
179 | {
|
---|
180 | filtering none
|
---|
181 | }
|
---|
182 | }
|
---|
183 | }
|
---|
184 | }
|
---|
185 |
|
---|
186 | material GTP/HPS/Smoke_L_Depth_Illum
|
---|
187 | {
|
---|
188 | technique
|
---|
189 | {
|
---|
190 | pass
|
---|
191 | {
|
---|
192 | IllumTechniques
|
---|
193 | {
|
---|
194 | RenderTechnique HPS
|
---|
195 | {
|
---|
196 | particle_script GTP/HPS/Smoke_Little
|
---|
197 | perspective false
|
---|
198 | vparam_radius baseRadius
|
---|
199 | update_interval 1
|
---|
200 | }
|
---|
201 | RenderTechnique SphericalBillboard
|
---|
202 | {
|
---|
203 | texture_unit_id 1
|
---|
204 | }
|
---|
205 | RenderTechnique IllumVolume
|
---|
206 | {
|
---|
207 | material GTP/HPS/Smoke_IllumVolume
|
---|
208 | update_interval 1
|
---|
209 | texture_unit_id 2
|
---|
210 | resolution 128
|
---|
211 | lightmatrix_param_name lightViewProj
|
---|
212 | }
|
---|
213 | }
|
---|
214 | depth_check off
|
---|
215 | depth_write off
|
---|
216 | scene_blend alpha_blend
|
---|
217 | vertex_program_ref GTP/HPS/Large_Depth_Illum_VS
|
---|
218 | {
|
---|
219 | param_named_auto worldView worldview_matrix
|
---|
220 | param_named_auto worldViewInv inverse_worldview_matrix
|
---|
221 | param_named_auto Proj projection_matrix
|
---|
222 | param_named_auto width viewport_width
|
---|
223 | param_named_auto height viewport_height
|
---|
224 | param_named baseRadius float 1
|
---|
225 | }
|
---|
226 | fragment_program_ref GTP/HPS/Large_Depth_Illum_PS
|
---|
227 | {
|
---|
228 |
|
---|
229 | }
|
---|
230 | //impostor texture
|
---|
231 | texture_unit
|
---|
232 | {
|
---|
233 | //filtering none
|
---|
234 | }
|
---|
235 | //scene depth texture
|
---|
236 | texture_unit
|
---|
237 | {
|
---|
238 | filtering none
|
---|
239 | }
|
---|
240 | //Ilumination volume
|
---|
241 | texture_unit
|
---|
242 | {
|
---|
243 | //filtering none
|
---|
244 | }
|
---|
245 | }
|
---|
246 | }
|
---|
247 | }
|
---|
248 |
|
---|
249 | material GTP/HPS/Smoke_IllumVolume
|
---|
250 | {
|
---|
251 | technique
|
---|
252 | {
|
---|
253 | pass
|
---|
254 | {
|
---|
255 | cull_hardware none
|
---|
256 | cull_software none
|
---|
257 | lighting off
|
---|
258 | scene_blend zero one_minus_src_colour
|
---|
259 | depth_write off
|
---|
260 |
|
---|
261 | vertex_program_ref GTP/HPS/IllumVolume_VS
|
---|
262 | {
|
---|
263 | param_named_auto worldView worldview_matrix
|
---|
264 | param_named_auto Proj projection_matrix
|
---|
265 | }
|
---|
266 | fragment_program_ref GTP/HPS/IllumVolume_PS
|
---|
267 | {
|
---|
268 | param_named density float 0.2
|
---|
269 | }
|
---|
270 | texture_unit
|
---|
271 | {
|
---|
272 | texture pamacs.dds
|
---|
273 | }
|
---|
274 | }
|
---|
275 | }
|
---|
276 | } |
---|