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