[3255] | 1 | vertex_program GTP/MoriaDemo/MoriaHallBase_VS hlsl
|
---|
| 2 | {
|
---|
| 3 | source MoriaHallBase.hlsl
|
---|
| 4 | entry_point MoriaHallBase_VS
|
---|
| 5 | target vs_3_0
|
---|
| 6 | }
|
---|
| 7 |
|
---|
| 8 | fragment_program GTP/MoriaDemo/MoriaHallBase_PS hlsl
|
---|
| 9 | {
|
---|
| 10 | source MoriaHallBase.hlsl
|
---|
| 11 | entry_point MoriaHallBase_PS
|
---|
| 12 | target ps_3_0
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | material MoriaHallBase
|
---|
| 16 | {
|
---|
| 17 | technique maintechnique
|
---|
| 18 | {
|
---|
| 19 | pass mainpass
|
---|
| 20 | {
|
---|
| 21 | IllumTechniques
|
---|
| 22 | {
|
---|
| 23 | //RenderTechnique PathMap
|
---|
| 24 | //{
|
---|
| 25 | //pass_blending one one
|
---|
| 26 | // new_passes false
|
---|
| 27 | // start_tex_id 3
|
---|
| 28 | //}
|
---|
| 29 | //RenderTechnique SphericalBillboard
|
---|
| 30 | //{
|
---|
| 31 | // bind_texture false
|
---|
| 32 | //}
|
---|
| 33 | RenderTechnique DepthShadowReceiver
|
---|
| 34 | {
|
---|
| 35 | max_light_count 2
|
---|
| 36 | set_light_viewproj false
|
---|
| 37 | set_light_view true
|
---|
| 38 | set_light_farplane true
|
---|
| 39 | light_view_param_name LightView
|
---|
| 40 | light_farplane_param_name lightFarPlane
|
---|
| 41 | new_passes false
|
---|
| 42 | start_tex_id 6
|
---|
| 43 | }
|
---|
| 44 | }
|
---|
| 45 | vertex_program_ref GTP/MoriaDemo/MoriaHallBase_VS
|
---|
| 46 | {
|
---|
| 47 | param_named_auto WorldViewProj worldviewproj_matrix
|
---|
| 48 | param_named_auto World world_matrix
|
---|
| 49 | param_named_auto WorldI inverse_world_matrix
|
---|
| 50 | param_named_auto wCamPos camera_position
|
---|
| 51 | param_named normalCoord float 0
|
---|
| 52 | param_named texture_repeat float 1
|
---|
| 53 | }
|
---|
| 54 | fragment_program_ref GTP/MoriaDemo/MoriaHallBase_PS
|
---|
| 55 | {
|
---|
| 56 | param_named_auto wLightPos1 light_position 0
|
---|
| 57 | param_named_auto wLightPos2 light_position 1
|
---|
| 58 | param_named_auto lightRange1 light_attenuation 0
|
---|
| 59 | param_named_auto lightRange2 light_attenuation 1
|
---|
| 60 | param_named_auto lightPower1 light_power 0
|
---|
| 61 | param_named_auto lightPower2 light_power 1
|
---|
| 62 | param_named_auto lightColor1 light_diffuse_colour 0
|
---|
| 63 | param_named_auto lightColor2 light_diffuse_colour 1
|
---|
| 64 | param_named specularity float 20
|
---|
| 65 | param_named specularColor float4 0.2 0.2 0.2 0.2
|
---|
| 66 | }
|
---|
| 67 | texture_unit tile_texture
|
---|
| 68 | {
|
---|
| 69 | }
|
---|
| 70 | texture_unit detail_texture
|
---|
| 71 | {
|
---|
| 72 | }
|
---|
| 73 | texture_unit displace
|
---|
| 74 | {
|
---|
| 75 | texture nullbump.bmp
|
---|
| 76 | //filtering none
|
---|
| 77 | //tex_address_mode clamp
|
---|
| 78 | }
|
---|
| 79 | texture_unit pathMap
|
---|
| 80 | {
|
---|
| 81 | }
|
---|
| 82 | texture_unit PMweightIndex
|
---|
| 83 | {
|
---|
| 84 | }
|
---|
| 85 | texture_unit PMweight
|
---|
| 86 | {
|
---|
| 87 | }
|
---|
| 88 | texture_unit SM1
|
---|
| 89 | {
|
---|
| 90 | }
|
---|
| 91 | texture_unit SM2
|
---|
| 92 | {
|
---|
| 93 | }
|
---|
| 94 | }
|
---|
| 95 | }
|
---|
| 96 | }
|
---|
| 97 |
|
---|
| 98 | material GreatPillarTrunk : MoriaHallBase
|
---|
| 99 | {
|
---|
| 100 | technique maintechnique
|
---|
| 101 | {
|
---|
| 102 | pass mainpass
|
---|
| 103 | {
|
---|
| 104 | texture_unit tile_texture
|
---|
| 105 | {
|
---|
| 106 | texture marble.jpg
|
---|
| 107 | }
|
---|
| 108 | texture_unit detail_texture
|
---|
| 109 | {
|
---|
| 110 | texture greatpillardetail.png
|
---|
| 111 | }
|
---|
| 112 | texture_unit displace
|
---|
| 113 | {
|
---|
| 114 | texture greatpillarbump.bmp
|
---|
| 115 | //texture nullbump.bmp
|
---|
| 116 | //tex_address_mode mirror
|
---|
| 117 | }
|
---|
| 118 | }
|
---|
| 119 | }
|
---|
| 120 | }
|
---|
| 121 | material GreatHallFloor : MoriaHallBase
|
---|
| 122 | {
|
---|
| 123 | technique maintechnique
|
---|
| 124 | {
|
---|
| 125 | pass mainpass
|
---|
| 126 | {
|
---|
| 127 | vertex_program_ref GTP/MoriaDemo/MoriaHallBase_VS
|
---|
| 128 | {
|
---|
| 129 | param_named normalCoord float 1
|
---|
| 130 | param_named texture_repeat float 3
|
---|
| 131 | }
|
---|
| 132 |
|
---|
| 133 | texture_unit tile_texture
|
---|
| 134 | {
|
---|
| 135 | texture greatHallFloorTile.jpg
|
---|
| 136 | }
|
---|
| 137 | texture_unit detail_texture
|
---|
| 138 | {
|
---|
| 139 | texture greathallfloordetail.png
|
---|
| 140 | }
|
---|
| 141 | texture_unit displace
|
---|
| 142 | {
|
---|
| 143 | texture floornormal.jpg
|
---|
| 144 | }
|
---|
| 145 | }
|
---|
| 146 | }
|
---|
| 147 | }
|
---|
| 148 | material GreatHallWall : MoriaHallBase
|
---|
| 149 | {
|
---|
| 150 | technique maintechnique
|
---|
| 151 | {
|
---|
| 152 | pass mainpass
|
---|
| 153 | {
|
---|
| 154 | texture_unit tile_texture
|
---|
| 155 | {
|
---|
| 156 | texture moriaWall.png
|
---|
| 157 | }
|
---|
| 158 | texture_unit detail_texture
|
---|
| 159 | {
|
---|
| 160 | texture greatHallWallDetail.png
|
---|
| 161 | }
|
---|
| 162 | texture_unit displace
|
---|
| 163 | {
|
---|
| 164 | texture morialwalldetailbump.bmp
|
---|
| 165 | }
|
---|
| 166 | }
|
---|
| 167 | }
|
---|
| 168 | }
|
---|
| 169 | material GreatHallPillarHead : MoriaHallBase
|
---|
| 170 | {
|
---|
| 171 | technique maintechnique
|
---|
| 172 | {
|
---|
| 173 | pass mainpass
|
---|
| 174 | {
|
---|
| 175 | texture_unit tile_texture
|
---|
| 176 | {
|
---|
| 177 | texture marble.jpg
|
---|
| 178 | }
|
---|
| 179 | texture_unit detail_texture
|
---|
| 180 | {
|
---|
| 181 | texture pillarheaddetail.png
|
---|
| 182 | }
|
---|
| 183 | texture_unit displace
|
---|
| 184 | {
|
---|
| 185 | texture greatpillarheadbump.bmp
|
---|
| 186 | }
|
---|
| 187 |
|
---|
| 188 | }
|
---|
| 189 | }
|
---|
| 190 | }
|
---|
| 191 |
|
---|
| 192 | material GreatHallCeiling : MoriaHallBase
|
---|
| 193 | {
|
---|
| 194 | technique maintechnique
|
---|
| 195 | {
|
---|
| 196 | pass mainpass
|
---|
| 197 | {
|
---|
| 198 | texture_unit tile_texture
|
---|
| 199 | {
|
---|
| 200 | texture marble.jpg
|
---|
| 201 | }
|
---|
| 202 | texture_unit detail_texture
|
---|
| 203 | {
|
---|
| 204 | texture moriaceilingdetail.png
|
---|
| 205 | }
|
---|
| 206 | }
|
---|
| 207 | }
|
---|
| 208 | }
|
---|
| 209 |
|
---|
| 210 |
|
---|
| 211 | material GTP/Moria/Smoke_L_Depth_Illum
|
---|
| 212 | {
|
---|
| 213 | technique
|
---|
| 214 | {
|
---|
| 215 | pass
|
---|
| 216 | {
|
---|
| 217 | IllumTechniques
|
---|
| 218 | {
|
---|
| 219 | RenderTechnique HPS
|
---|
| 220 | {
|
---|
| 221 | particle_script GTP/Moria/Smoke_Little
|
---|
| 222 | perspective false
|
---|
| 223 | vparam_radius baseRadius
|
---|
| 224 | update_interval 1
|
---|
| 225 | }
|
---|
| 226 | RenderTechnique SphericalBillboard
|
---|
| 227 | {
|
---|
| 228 | texture_unit_id 1
|
---|
| 229 | }
|
---|
| 230 | RenderTechnique IllumVolume
|
---|
| 231 | {
|
---|
| 232 | material GTP/HPS/Smoke_IllumVolume
|
---|
| 233 | update_interval 1
|
---|
| 234 | texture_unit_id 2
|
---|
| 235 | resolution 128
|
---|
| 236 | lightmatrix_param_name lightViewProj
|
---|
| 237 | }
|
---|
| 238 | }
|
---|
| 239 | depth_check off
|
---|
| 240 | depth_write off
|
---|
| 241 | scene_blend alpha_blend
|
---|
| 242 | vertex_program_ref GTP/HPS/Large_Depth_Illum_VS
|
---|
| 243 | {
|
---|
| 244 | param_named_auto worldView worldview_matrix
|
---|
| 245 | param_named_auto worldViewInv inverse_worldview_matrix
|
---|
| 246 | param_named_auto Proj projection_matrix
|
---|
| 247 | param_named_auto width viewport_width
|
---|
| 248 | param_named_auto height viewport_height
|
---|
| 249 | param_named baseRadius float 1
|
---|
| 250 | }
|
---|
| 251 | fragment_program_ref GTP/HPS/Large_Depth_Illum_PS
|
---|
| 252 | {
|
---|
| 253 |
|
---|
| 254 | }
|
---|
| 255 | //impostor texture
|
---|
| 256 | texture_unit
|
---|
| 257 | {
|
---|
| 258 | //filtering none
|
---|
| 259 | }
|
---|
| 260 | //scene depth texture
|
---|
| 261 | texture_unit
|
---|
| 262 | {
|
---|
| 263 | filtering none
|
---|
| 264 | }
|
---|
| 265 | //Ilumination volume
|
---|
| 266 | texture_unit
|
---|
| 267 | {
|
---|
| 268 | //filtering none
|
---|
| 269 | }
|
---|
| 270 | }
|
---|
| 271 | }
|
---|
| 272 | }
|
---|
| 273 |
|
---|
| 274 | material GTP/Moria/Crosshair
|
---|
| 275 | {
|
---|
| 276 | technique
|
---|
| 277 | {
|
---|
| 278 | pass
|
---|
| 279 | {
|
---|
| 280 | scene_blend one one_minus_src_colour
|
---|
| 281 | cull_hardware none
|
---|
| 282 | depth_test off
|
---|
| 283 | depth_write off
|
---|
| 284 | lighting off
|
---|
| 285 | texture_unit
|
---|
| 286 | {
|
---|
| 287 | texture crosshair.jpg
|
---|
| 288 | colour_op replace
|
---|
| 289 | }
|
---|
| 290 | }
|
---|
| 291 | }
|
---|
| 292 | }
|
---|
| 293 |
|
---|
| 294 | material GTP/Moria/Border
|
---|
| 295 | {
|
---|
| 296 | technique
|
---|
| 297 | {
|
---|
| 298 | pass
|
---|
| 299 | {
|
---|
| 300 | scene_blend one one_minus_src_colour
|
---|
| 301 | cull_hardware none
|
---|
| 302 | depth_test off
|
---|
| 303 | depth_write off
|
---|
| 304 | lighting off
|
---|
| 305 | texture_unit
|
---|
| 306 | {
|
---|
| 307 | texture border.jpg
|
---|
| 308 | colour_op replace
|
---|
| 309 | }
|
---|
| 310 | }
|
---|
| 311 | }
|
---|
| 312 | }
|
---|
| 313 |
|
---|
| 314 | material GTP/Moria/HUD/Column
|
---|
| 315 | {
|
---|
| 316 | technique t1
|
---|
| 317 | {
|
---|
| 318 | pass p1
|
---|
| 319 | {
|
---|
| 320 | // scene_blend one one_minus_src_colour
|
---|
| 321 | cull_hardware none
|
---|
| 322 | depth_test off
|
---|
| 323 | depth_write off
|
---|
| 324 | lighting off
|
---|
| 325 |
|
---|
| 326 | }
|
---|
| 327 | }
|
---|
| 328 | }
|
---|
| 329 |
|
---|
| 330 | material GTP/Moria/HUD/BlueColumn : GTP/Moria/HUD/Column
|
---|
| 331 | {
|
---|
| 332 | technique t1
|
---|
| 333 | {
|
---|
| 334 | pass p1
|
---|
| 335 | {
|
---|
| 336 | texture_unit
|
---|
| 337 | {
|
---|
| 338 | texture blue.jpg
|
---|
| 339 | colour_op replace
|
---|
| 340 | }
|
---|
| 341 | }
|
---|
| 342 | }
|
---|
| 343 | }
|
---|
| 344 |
|
---|
| 345 | material GTP/Moria/HUD/RedColumn : GTP/Moria/HUD/Column
|
---|
| 346 | {
|
---|
| 347 | technique t1
|
---|
| 348 | {
|
---|
| 349 | pass p1
|
---|
| 350 | {
|
---|
| 351 | texture_unit
|
---|
| 352 | {
|
---|
| 353 | texture red.jpg
|
---|
| 354 | colour_op replace
|
---|
| 355 | }
|
---|
| 356 | }
|
---|
| 357 | }
|
---|
| 358 | }
|
---|
| 359 |
|
---|
| 360 | material GTP/Moria/HUD/YellowColumn : GTP/Moria/HUD/Column
|
---|
| 361 | {
|
---|
| 362 | technique t1
|
---|
| 363 | {
|
---|
| 364 | pass p1
|
---|
| 365 | {
|
---|
| 366 | texture_unit
|
---|
| 367 | {
|
---|
| 368 | texture yellow.jpg
|
---|
| 369 | colour_op replace
|
---|
| 370 | tex_address_mode clamp
|
---|
| 371 | }
|
---|
| 372 | }
|
---|
| 373 | }
|
---|
| 374 | }
|
---|
| 375 |
|
---|
| 376 | material GTP/Moria/HUD/SwordIcon : GTP/Moria/HUD/Column
|
---|
| 377 | {
|
---|
| 378 | technique t1
|
---|
| 379 | {
|
---|
| 380 | pass p1
|
---|
| 381 | {
|
---|
| 382 | texture_unit
|
---|
| 383 | {
|
---|
| 384 | texture swordicon.jpg
|
---|
| 385 | colour_op replace
|
---|
| 386 | tex_address_mode clamp
|
---|
| 387 | }
|
---|
| 388 | }
|
---|
| 389 | }
|
---|
| 390 | }
|
---|
| 391 |
|
---|
| 392 | material GTP/Moria/HUD/FireBallIcon : GTP/Moria/HUD/Column
|
---|
| 393 | {
|
---|
| 394 | technique t1
|
---|
| 395 | {
|
---|
| 396 | pass p1
|
---|
| 397 | {
|
---|
| 398 | texture_unit
|
---|
| 399 | {
|
---|
| 400 | texture fireballicon.jpg
|
---|
| 401 | colour_op replace
|
---|
| 402 | tex_address_mode clamp
|
---|
| 403 | }
|
---|
| 404 | }
|
---|
| 405 | }
|
---|
| 406 | } |
---|