[1336] | 1 | vertex_program HPS_Smoke_S_VS hlsl
|
---|
| 2 | {
|
---|
| 3 | source GameTools_HPS_Smoke_S.hlsl
|
---|
[1339] | 4 | entry_point HPS_Smoke_S_VS
|
---|
| 5 | target vs_3_0
|
---|
[1336] | 6 | }
|
---|
| 7 |
|
---|
| 8 | fragment_program HPS_Smoke_S_PS hlsl
|
---|
| 9 | {
|
---|
| 10 | source GameTools_HPS_Smoke_S.hlsl
|
---|
[1339] | 11 | entry_point HPS_Smoke_S_PS
|
---|
[1336] | 12 | target ps_3_0
|
---|
| 13 | }
|
---|
| 14 |
|
---|
[1339] | 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 |
|
---|
[1355] | 34 | texture_unit
|
---|
| 35 | {
|
---|
| 36 | texture pamacs.dds
|
---|
| 37 | }
|
---|
| 38 |
|
---|
[1339] | 39 | depth_check off
|
---|
[1355] | 40 | scene_blend_op max
|
---|
| 41 | scene_blend_op_alpha add
|
---|
| 42 | scene_blend_alpha one one_minus_src_alpha
|
---|
[1339] | 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
|
---|
[1424] | 77 | vparam_radius baseRadius
|
---|
| 78 | }
|
---|
| 79 |
|
---|
[1339] | 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
|
---|
[1424] | 86 | param_named_auto Proj projection_matrix
|
---|
[1339] | 87 | }
|
---|
| 88 | fragment_program_ref HPS_Smoke_L_PS
|
---|
| 89 | {
|
---|
| 90 | param_named_auto Proj projection_matrix
|
---|
| 91 | }
|
---|
| 92 |
|
---|
[1355] | 93 | depth_check off
|
---|
| 94 | scene_blend alpha_blend
|
---|
[1339] | 95 |
|
---|
[1424] | 96 | //impostor texture
|
---|
[1339] | 97 | texture_unit
|
---|
| 98 | {
|
---|
| 99 |
|
---|
| 100 | }
|
---|
[1424] | 101 |
|
---|
[1339] | 102 |
|
---|
| 103 | }
|
---|
| 104 | }
|
---|
| 105 | }
|
---|
| 106 |
|
---|
[1424] | 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 | }
|
---|
[1339] | 113 |
|
---|
[1424] | 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 | }
|
---|
[1339] | 120 |
|
---|
[1424] | 121 |
|
---|
| 122 |
|
---|
| 123 | material 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 |
|
---|
| 191 | vertex_program Smoke_IllumVolume_VS hlsl
|
---|
| 192 | {
|
---|
| 193 | source GameTools_Smoke_IllumVolume.hlsl
|
---|
| 194 | entry_point SmokeIllumVolumeVS
|
---|
| 195 | target vs_3_0
|
---|
| 196 | }
|
---|
| 197 |
|
---|
| 198 | fragment_program HPS_IllumVolume_PS hlsl
|
---|
| 199 | {
|
---|
| 200 | source GameTools_Smoke_IllumVolume.hlsl
|
---|
| 201 | entry_point SmokeIllumVolumePS
|
---|
| 202 | target ps_3_0
|
---|
| 203 | }
|
---|
| 204 |
|
---|
| 205 | material 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 |
|
---|