[1060] | 1 | material Flare
|
---|
| 2 | {
|
---|
| 3 | technique
|
---|
| 4 | {
|
---|
| 5 | pass
|
---|
| 6 | {
|
---|
| 7 | //cull_hardware none
|
---|
| 8 | lighting off
|
---|
[1336] | 9 | scene_blend add
|
---|
[1060] | 10 | //scene_blend_op add
|
---|
| 11 | //scene_blend_op_alpha add
|
---|
| 12 | //scene_blend_alpha add
|
---|
[1441] | 13 | //depth_check off
|
---|
[1060] | 14 | depth_write off
|
---|
| 15 |
|
---|
[1336] | 16 | texture_unit
|
---|
| 17 | {
|
---|
| 18 | texture flare.png
|
---|
| 19 | }
|
---|
[1060] | 20 | }
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
| 23 |
|
---|
[1441] | 24 |
|
---|
| 25 | material Examples/EveningSkyBox
|
---|
| 26 | {
|
---|
| 27 | technique
|
---|
| 28 | {
|
---|
| 29 | pass
|
---|
| 30 | {
|
---|
| 31 | lighting off
|
---|
| 32 | depth_write off
|
---|
| 33 |
|
---|
| 34 | texture_unit
|
---|
| 35 | {
|
---|
[2152] | 36 | cubic_texture morning.jpg separateUV
|
---|
[1441] | 37 | tex_address_mode clamp
|
---|
| 38 | }
|
---|
| 39 | }
|
---|
| 40 | }
|
---|
| 41 | }
|
---|
| 42 |
|
---|
[1683] | 43 | vertex_program TexturedVS hlsl
|
---|
| 44 | {
|
---|
| 45 | source textured.hlsl
|
---|
| 46 | entry_point vs
|
---|
| 47 | target vs_2_0
|
---|
| 48 | }
|
---|
| 49 |
|
---|
| 50 | fragment_program TexturedPS hlsl
|
---|
| 51 | {
|
---|
| 52 | source textured.hlsl
|
---|
| 53 | entry_point ps
|
---|
| 54 | target ps_3_0
|
---|
| 55 | }
|
---|
| 56 |
|
---|
[777] | 57 | material Examples/MorningSkyBox
|
---|
| 58 | {
|
---|
| 59 | technique
|
---|
| 60 | {
|
---|
| 61 | pass
|
---|
| 62 | {
|
---|
[1683] | 63 | vertex_program_ref TexturedVS
|
---|
| 64 | {
|
---|
| 65 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 66 | }
|
---|
| 67 | fragment_program_ref TexturedPS
|
---|
| 68 | {
|
---|
| 69 |
|
---|
| 70 | }
|
---|
[777] | 71 | depth_write off
|
---|
| 72 |
|
---|
| 73 | texture_unit
|
---|
| 74 | {
|
---|
[1683] | 75 | cubic_texture Forest.dds separateUV
|
---|
| 76 | //cubic_texture morning.jpg separateUV
|
---|
[777] | 77 | tex_address_mode clamp
|
---|
| 78 | }
|
---|
| 79 | }
|
---|
| 80 | }
|
---|
| 81 | }
|
---|
| 82 |
|
---|
| 83 | material GameTools/Rockwall
|
---|
| 84 | {
|
---|
| 85 | technique
|
---|
| 86 | {
|
---|
| 87 | pass
|
---|
| 88 | {
|
---|
| 89 | lighting off
|
---|
| 90 | texture_unit
|
---|
| 91 | {
|
---|
| 92 | texture rockwall.tga
|
---|
[1519] | 93 | //env_map cubic_normal
|
---|
[777] | 94 | //vertex_texture true
|
---|
| 95 | }
|
---|
| 96 | }
|
---|
| 97 | }
|
---|
| 98 | }
|
---|
| 99 |
|
---|
[1081] | 100 | material GameTools/Standard
|
---|
| 101 | {
|
---|
| 102 | technique
|
---|
| 103 | {
|
---|
| 104 | pass
|
---|
| 105 | {
|
---|
| 106 | ambient 0.1 0.11 0.15
|
---|
| 107 | diffuse 0.8 0.9 1.0
|
---|
| 108 | }
|
---|
| 109 | }
|
---|
| 110 | }
|
---|
| 111 |
|
---|
[1451] | 112 | material TestPlane
|
---|
| 113 | {
|
---|
| 114 | technique
|
---|
| 115 | {
|
---|
| 116 | pass
|
---|
| 117 | {
|
---|
[1691] | 118 | ambient 0.8 0.8 0.8
|
---|
| 119 | diffuse 0.0 0.0 0.0
|
---|
| 120 | specular 0.0 0.0 0.0
|
---|
[1629] | 121 | //lighting off
|
---|
[1451] | 122 | IllumTechniques
|
---|
[1629] | 123 | {
|
---|
[1691] | 124 | RenderTechnique CausticReciever
|
---|
| 125 | {
|
---|
| 126 | max_caster_count 10
|
---|
| 127 | }
|
---|
| 128 | //RenderTechnique DepthShadowReciever
|
---|
[1629] | 129 | //{
|
---|
[1691] | 130 |
|
---|
| 131 | //}
|
---|
| 132 | }
|
---|
| 133 | texture_unit
|
---|
| 134 | {
|
---|
| 135 | texture rockWall.tga
|
---|
| 136 | }
|
---|
| 137 |
|
---|
[1451] | 138 | }
|
---|
| 139 | }
|
---|
| 140 | }
|
---|
[777] | 141 |
|
---|
| 142 |
|
---|
[1451] | 143 |
|
---|
[777] | 144 | material GameTools/UVShader
|
---|
| 145 | {
|
---|
| 146 | technique
|
---|
| 147 | {
|
---|
| 148 | pass
|
---|
| 149 | {
|
---|
[835] | 150 | vertex_program_ref GameTools/UV_VS
|
---|
[777] | 151 | {
|
---|
| 152 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 153 | }
|
---|
[835] | 154 | fragment_program_ref GameTools/UV_PS
|
---|
[777] | 155 | {
|
---|
| 156 | param_named_auto ID custom 0
|
---|
| 157 | }
|
---|
| 158 |
|
---|
| 159 |
|
---|
| 160 | }
|
---|
| 161 | }
|
---|
| 162 | }
|
---|
| 163 |
|
---|
| 164 | material GameTools/DistanceShader
|
---|
| 165 | {
|
---|
| 166 |
|
---|
| 167 | technique
|
---|
| 168 | {
|
---|
| 169 | pass
|
---|
| 170 | {
|
---|
[835] | 171 | vertex_program_ref GameTools/DistanceVS
|
---|
[777] | 172 | {
|
---|
| 173 | param_named_auto worldView worldview_matrix
|
---|
| 174 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 175 | }
|
---|
[835] | 176 | fragment_program_ref GameTools/DistancePS
|
---|
[777] | 177 | {
|
---|
| 178 |
|
---|
| 179 | }
|
---|
| 180 |
|
---|
| 181 | }
|
---|
| 182 | }
|
---|
| 183 | }
|
---|
| 184 |
|
---|
| 185 | material GameTools/SceneCameraDepthShader
|
---|
| 186 | {
|
---|
| 187 |
|
---|
| 188 | technique
|
---|
| 189 | {
|
---|
| 190 | scene_blend none
|
---|
| 191 |
|
---|
| 192 | pass
|
---|
| 193 | {
|
---|
[835] | 194 | vertex_program_ref GameTools/SceneCameraDepthVS
|
---|
[777] | 195 | {
|
---|
| 196 | param_named_auto worldView worldview_matrix
|
---|
| 197 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 198 | param_named_auto farplane far_clip_distance
|
---|
| 199 | }
|
---|
[835] | 200 | fragment_program_ref GameTools/SceneDepthPS
|
---|
[777] | 201 | {
|
---|
| 202 |
|
---|
| 203 | }
|
---|
| 204 |
|
---|
| 205 | }
|
---|
| 206 | }
|
---|
| 207 | }
|
---|
| 208 |
|
---|
[1102] | 209 | material GameTools/FocusingShader
|
---|
| 210 | {
|
---|
| 211 |
|
---|
| 212 | technique
|
---|
| 213 | {
|
---|
| 214 | scene_blend none
|
---|
| 215 |
|
---|
| 216 | pass
|
---|
| 217 | {
|
---|
| 218 | vertex_program_ref GameTools/FocusingVS
|
---|
| 219 | {
|
---|
[1131] | 220 | param_named_auto world world_matrix
|
---|
[1102] | 221 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
[1131] | 222 | param_named lightTransform matrix4x4
|
---|
[1102] | 223 | }
|
---|
| 224 | fragment_program_ref GameTools/FocusingPS
|
---|
| 225 | {
|
---|
| 226 |
|
---|
| 227 | }
|
---|
| 228 |
|
---|
| 229 | }
|
---|
| 230 | }
|
---|
| 231 | }
|
---|
| 232 |
|
---|
[777] | 233 | material GameTools/ShadowMapDepth
|
---|
| 234 | {
|
---|
| 235 |
|
---|
| 236 | technique
|
---|
| 237 | {
|
---|
| 238 | scene_blend none
|
---|
| 239 |
|
---|
| 240 | pass
|
---|
| 241 | {
|
---|
[1629] | 242 | cull_hardware anticlockwise
|
---|
[1131] | 243 | //cull_hardware none
|
---|
[807] | 244 |
|
---|
[777] | 245 | vertex_program_ref GameTools/ShadowMap/DepthVS
|
---|
| 246 | {
|
---|
[1131] | 247 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
[777] | 248 | }
|
---|
| 249 | fragment_program_ref GameTools/ShadowMap/DepthPS
|
---|
| 250 | {
|
---|
| 251 |
|
---|
| 252 | }
|
---|
[807] | 253 |
|
---|
[777] | 254 | }
|
---|
| 255 | }
|
---|
[1131] | 256 | }
|
---|
| 257 |
|
---|
[1671] | 258 | material GameTools/ShadowMapDistance
|
---|
| 259 | {
|
---|
[1131] | 260 |
|
---|
[1671] | 261 | technique
|
---|
| 262 | {
|
---|
[2054] | 263 |
|
---|
[1671] | 264 | pass
|
---|
| 265 | {
|
---|
[2054] | 266 | scene_blend none
|
---|
| 267 |
|
---|
| 268 | cull_hardware anticlockwise
|
---|
| 269 | //cull_hardware none
|
---|
[2139] | 270 | //cull_software none
|
---|
[2054] | 271 | //cull_hardware clockwise
|
---|
[1671] | 272 |
|
---|
[2054] | 273 | vertex_program_ref GameTools/ShadowMap/DistVS
|
---|
[1671] | 274 | {
|
---|
| 275 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 276 | param_named_auto worldView worldview_matrix
|
---|
[2054] | 277 | }
|
---|
| 278 | fragment_program_ref GameTools/ShadowMap/DistPS
|
---|
[1671] | 279 | {
|
---|
[2054] | 280 | param_named_auto farPlane far_clip_distance
|
---|
[1671] | 281 | }
|
---|
| 282 |
|
---|
| 283 | }
|
---|
| 284 | }
|
---|
| 285 | }
|
---|
| 286 |
|
---|
| 287 |
|
---|
[1131] | 288 | material GameTools/Blur
|
---|
| 289 | {
|
---|
| 290 |
|
---|
| 291 | technique
|
---|
| 292 | {
|
---|
| 293 |
|
---|
| 294 | pass
|
---|
| 295 | {
|
---|
| 296 | vertex_program_ref GameTools/BlurVS
|
---|
| 297 | {
|
---|
| 298 |
|
---|
| 299 | }
|
---|
| 300 | fragment_program_ref GameTools/BlurPS
|
---|
| 301 | {
|
---|
| 302 | param_named_auto width viewport_width
|
---|
| 303 | param_named_auto height viewport_height
|
---|
| 304 | }
|
---|
| 305 | texture_unit
|
---|
| 306 | {
|
---|
| 307 | filtering bilinear
|
---|
| 308 | }
|
---|
| 309 |
|
---|
| 310 | }
|
---|
| 311 | }
|
---|
[1424] | 312 | }
|
---|
| 313 |
|
---|
[2024] | 314 | material GameTools/BlurLightVolume
|
---|
| 315 | {
|
---|
| 316 |
|
---|
| 317 | technique
|
---|
| 318 | {
|
---|
| 319 |
|
---|
| 320 | pass
|
---|
| 321 | {
|
---|
| 322 | depth_check off
|
---|
| 323 | cull_hardware none
|
---|
| 324 | scene_blend alpha_blend
|
---|
| 325 |
|
---|
| 326 | vertex_program_ref GameTools/BlurVS
|
---|
| 327 | {
|
---|
| 328 |
|
---|
| 329 | }
|
---|
| 330 | fragment_program_ref GameTools/CopyPS
|
---|
| 331 | {
|
---|
| 332 | param_named_auto width viewport_width
|
---|
| 333 | param_named_auto height viewport_height
|
---|
[2030] | 334 | param_named alpha float 0.05
|
---|
[2024] | 335 | }
|
---|
| 336 | texture_unit
|
---|
| 337 | {
|
---|
| 338 | filtering bilinear
|
---|
| 339 | }
|
---|
| 340 |
|
---|
| 341 | }
|
---|
| 342 | }
|
---|
| 343 | }
|
---|
| 344 |
|
---|
[1691] | 345 | material GameTools/BlurCubeFace
|
---|
| 346 | {
|
---|
| 347 |
|
---|
| 348 | technique
|
---|
| 349 | {
|
---|
| 350 |
|
---|
| 351 | pass
|
---|
| 352 | {
|
---|
| 353 | vertex_program_ref GameTools/BlurCubeFaceVS
|
---|
| 354 | {
|
---|
| 355 |
|
---|
| 356 | }
|
---|
| 357 | fragment_program_ref GameTools/BlurCubeFacePS
|
---|
| 358 | {
|
---|
| 359 | param_named_auto width viewport_width
|
---|
| 360 | param_named_auto height viewport_height
|
---|
| 361 | param_named face float 0
|
---|
| 362 | }
|
---|
| 363 | texture_unit
|
---|
| 364 | {
|
---|
| 365 | filtering bilinear
|
---|
| 366 | }
|
---|
| 367 |
|
---|
| 368 | }
|
---|
| 369 | }
|
---|
| 370 | }
|
---|
| 371 |
|
---|
[1424] | 372 | vertex_program PhaseVS hlsl
|
---|
| 373 | {
|
---|
| 374 | source GameTools_Phase.hlsl
|
---|
| 375 | entry_point PhaseVS
|
---|
| 376 | target vs_2_0
|
---|
| 377 | }
|
---|
| 378 |
|
---|
| 379 | fragment_program Phase_HenyeyGreenSteinPS hlsl
|
---|
| 380 | {
|
---|
| 381 | source GameTools_Phase.hlsl
|
---|
| 382 | entry_point HenyeyGreensteinPS
|
---|
| 383 | target ps_2_0
|
---|
| 384 | }
|
---|
| 385 |
|
---|
| 386 | material Phase_HenyeyGreenStein
|
---|
| 387 | {
|
---|
| 388 |
|
---|
| 389 | technique
|
---|
| 390 | {
|
---|
| 391 |
|
---|
| 392 | pass
|
---|
| 393 | {
|
---|
| 394 | vertex_program_ref PhaseVS
|
---|
| 395 | {
|
---|
| 396 |
|
---|
| 397 | }
|
---|
| 398 | fragment_program_ref Phase_HenyeyGreenSteinPS
|
---|
| 399 | {
|
---|
| 400 |
|
---|
| 401 | }
|
---|
| 402 |
|
---|
| 403 | }
|
---|
| 404 | }
|
---|
[1590] | 405 | }
|
---|
| 406 |
|
---|
| 407 |
|
---|
| 408 |
|
---|