[1092] | 1 |
|
---|
| 2 | material Examples/EnvMappedRustySteel
|
---|
| 3 | {
|
---|
| 4 | technique
|
---|
| 5 | {
|
---|
| 6 | pass
|
---|
| 7 | {
|
---|
| 8 |
|
---|
| 9 | texture_unit
|
---|
| 10 | {
|
---|
| 11 | texture RustySteel.jpg
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | texture_unit
|
---|
| 15 | {
|
---|
| 16 | texture spheremap.png
|
---|
| 17 | colour_op_ex add src_texture src_current
|
---|
| 18 | colour_op_multipass_fallback one one
|
---|
| 19 | env_map spherical
|
---|
| 20 | }
|
---|
| 21 | }
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
| 24 | material Examples/OgreLogo
|
---|
| 25 | {
|
---|
| 26 | technique
|
---|
| 27 | {
|
---|
| 28 | pass
|
---|
| 29 | {
|
---|
| 30 | ambient 0.8 0.8 0.8
|
---|
| 31 |
|
---|
| 32 | texture_unit
|
---|
| 33 | {
|
---|
| 34 | texture ogrelogo.png
|
---|
| 35 | }
|
---|
| 36 | }
|
---|
| 37 | }
|
---|
| 38 | }
|
---|
[1128] | 39 |
|
---|
| 40 | material LODStripsDemo/Ogro
|
---|
| 41 | {
|
---|
| 42 | technique
|
---|
| 43 | {
|
---|
| 44 | pass
|
---|
| 45 | {
|
---|
[1783] | 46 | ambient 1.0 1.0 1.0
|
---|
[1128] | 47 | texture_unit
|
---|
| 48 | {
|
---|
| 49 | texture player.jpg
|
---|
| 50 | }
|
---|
| 51 | }
|
---|
| 52 | }
|
---|
| 53 | }
|
---|
| 54 |
|
---|
| 55 |
|
---|
[1092] | 56 | material Examples/DarkMaterial
|
---|
| 57 | {
|
---|
| 58 | technique
|
---|
| 59 | {
|
---|
| 60 | pass
|
---|
| 61 | {
|
---|
| 62 | ambient 0.1 0.1 0.1
|
---|
| 63 |
|
---|
| 64 | texture_unit
|
---|
| 65 | {
|
---|
| 66 | texture BeachStones.jpg
|
---|
| 67 | }
|
---|
| 68 | }
|
---|
| 69 | }
|
---|
| 70 | }
|
---|
| 71 | material Examples/SpaceSkyBox
|
---|
| 72 | {
|
---|
| 73 | technique
|
---|
| 74 | {
|
---|
| 75 | pass
|
---|
| 76 | {
|
---|
| 77 | lighting off
|
---|
| 78 | depth_write off
|
---|
| 79 |
|
---|
| 80 | texture_unit
|
---|
| 81 | {
|
---|
| 82 | cubic_texture stevecube.jpg separateUV
|
---|
| 83 | tex_address_mode clamp
|
---|
| 84 | }
|
---|
| 85 | }
|
---|
| 86 | }
|
---|
| 87 | }
|
---|
| 88 | material Examples/SceneSkyBox1
|
---|
| 89 | {
|
---|
| 90 | technique
|
---|
| 91 | {
|
---|
| 92 | pass
|
---|
| 93 | {
|
---|
| 94 | lighting off
|
---|
| 95 | depth_write off
|
---|
| 96 |
|
---|
| 97 | texture_unit
|
---|
| 98 | {
|
---|
| 99 | cubic_texture cubemap_fr.jpg cubemap_bk.jpg cubemap_lf.jpg cubemap_rt.jpg cubemap_up.jpg cubemap_dn.jpg separateUV
|
---|
| 100 | tex_address_mode clamp
|
---|
| 101 | }
|
---|
| 102 | }
|
---|
| 103 | }
|
---|
| 104 | }
|
---|
| 105 | material Examples/SceneCubeMap1
|
---|
| 106 | {
|
---|
| 107 | technique
|
---|
| 108 | {
|
---|
| 109 | pass
|
---|
| 110 | {
|
---|
| 111 | lighting off
|
---|
| 112 |
|
---|
| 113 | texture_unit
|
---|
| 114 | {
|
---|
| 115 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 116 | tex_address_mode clamp
|
---|
| 117 | env_map cubic_reflection
|
---|
| 118 | }
|
---|
| 119 | }
|
---|
| 120 | }
|
---|
| 121 | }
|
---|
| 122 | material Examples/SceneSkyBox2
|
---|
| 123 | {
|
---|
| 124 | technique
|
---|
| 125 | {
|
---|
| 126 | pass
|
---|
| 127 | {
|
---|
| 128 | lighting off
|
---|
| 129 | depth_write off
|
---|
| 130 |
|
---|
| 131 | texture_unit
|
---|
| 132 | {
|
---|
| 133 | cubic_texture cubescene_fr.jpg cubescene_bk.jpg cubescene_lf.jpg cubescene_rt.jpg cubescene_up.jpg cubescene_dn.jpg separateUV
|
---|
| 134 | tex_address_mode clamp
|
---|
| 135 | }
|
---|
| 136 | }
|
---|
| 137 | }
|
---|
| 138 | }
|
---|
| 139 | material Examples/SceneCubeMap2
|
---|
| 140 | {
|
---|
| 141 | technique
|
---|
| 142 | {
|
---|
| 143 | pass
|
---|
| 144 | {
|
---|
| 145 | lighting off
|
---|
| 146 |
|
---|
| 147 | texture_unit
|
---|
| 148 | {
|
---|
| 149 | cubic_texture cubescene.jpg combinedUVW
|
---|
| 150 | tex_address_mode clamp
|
---|
| 151 | env_map cubic_reflection
|
---|
| 152 | }
|
---|
| 153 | }
|
---|
| 154 | }
|
---|
| 155 | }
|
---|
| 156 |
|
---|
| 157 | material Examples/CloudyNoonSkyBox
|
---|
| 158 | {
|
---|
| 159 | technique
|
---|
| 160 | {
|
---|
| 161 | pass
|
---|
| 162 | {
|
---|
| 163 | lighting off
|
---|
| 164 | depth_write off
|
---|
[1783] | 165 | fog_override true
|
---|
[1092] | 166 |
|
---|
| 167 | texture_unit
|
---|
| 168 | {
|
---|
| 169 | cubic_texture cloudy_noon.jpg separateUV
|
---|
| 170 | tex_address_mode clamp
|
---|
| 171 | }
|
---|
| 172 | }
|
---|
| 173 | }
|
---|
| 174 | }
|
---|
| 175 |
|
---|
| 176 | material Examples/StormySkyBox
|
---|
| 177 | {
|
---|
| 178 | technique
|
---|
| 179 | {
|
---|
| 180 | pass
|
---|
| 181 | {
|
---|
| 182 | lighting off
|
---|
| 183 | depth_write off
|
---|
| 184 |
|
---|
| 185 | texture_unit
|
---|
| 186 | {
|
---|
| 187 | cubic_texture stormy.jpg separateUV
|
---|
| 188 | tex_address_mode clamp
|
---|
| 189 | }
|
---|
| 190 | }
|
---|
| 191 | }
|
---|
| 192 | }
|
---|
| 193 |
|
---|
| 194 | material Examples/MorningSkyBox
|
---|
| 195 | {
|
---|
| 196 | technique
|
---|
| 197 | {
|
---|
| 198 | pass
|
---|
| 199 | {
|
---|
| 200 | lighting off
|
---|
| 201 | depth_write off
|
---|
| 202 |
|
---|
| 203 | texture_unit
|
---|
| 204 | {
|
---|
| 205 | cubic_texture morning.jpg separateUV
|
---|
| 206 | tex_address_mode clamp
|
---|
| 207 | }
|
---|
| 208 | }
|
---|
| 209 | }
|
---|
| 210 | }
|
---|
| 211 |
|
---|
| 212 | material Examples/EveningSkyBox
|
---|
| 213 | {
|
---|
| 214 | technique
|
---|
| 215 | {
|
---|
| 216 | pass
|
---|
| 217 | {
|
---|
| 218 | lighting off
|
---|
| 219 | depth_write off
|
---|
| 220 |
|
---|
| 221 | texture_unit
|
---|
| 222 | {
|
---|
| 223 | cubic_texture evening.jpg separateUV
|
---|
| 224 | tex_address_mode clamp
|
---|
| 225 | }
|
---|
| 226 | }
|
---|
| 227 | }
|
---|
| 228 | }
|
---|
| 229 |
|
---|
| 230 | material Examples/CloudySky
|
---|
| 231 | {
|
---|
| 232 | technique
|
---|
| 233 | {
|
---|
| 234 | pass
|
---|
| 235 | {
|
---|
| 236 | lighting off
|
---|
| 237 | depth_write off
|
---|
| 238 |
|
---|
| 239 | texture_unit
|
---|
| 240 | {
|
---|
| 241 | texture clouds.jpg
|
---|
| 242 | scroll_anim 0.15 0
|
---|
| 243 | }
|
---|
| 244 | }
|
---|
| 245 | }
|
---|
| 246 | }
|
---|
| 247 | material Examples/RustySteel
|
---|
| 248 | {
|
---|
| 249 | technique
|
---|
| 250 | {
|
---|
| 251 | pass
|
---|
| 252 | {
|
---|
| 253 |
|
---|
| 254 | texture_unit
|
---|
| 255 | {
|
---|
| 256 | texture RustySteel.jpg
|
---|
| 257 | }
|
---|
| 258 | }
|
---|
| 259 | }
|
---|
| 260 | }
|
---|
| 261 | material Examples/Chrome
|
---|
| 262 | {
|
---|
| 263 | technique
|
---|
| 264 | {
|
---|
| 265 | pass
|
---|
| 266 | {
|
---|
| 267 |
|
---|
| 268 | texture_unit
|
---|
| 269 | {
|
---|
| 270 | texture Chrome.jpg
|
---|
| 271 | env_map spherical
|
---|
| 272 | }
|
---|
| 273 | }
|
---|
| 274 | }
|
---|
| 275 | }
|
---|
| 276 | material Examples/SpaceSkyPlane
|
---|
| 277 | {
|
---|
| 278 | technique
|
---|
| 279 | {
|
---|
| 280 | pass
|
---|
| 281 | {
|
---|
| 282 | lighting off
|
---|
| 283 | depth_write off
|
---|
| 284 | fog_override true none
|
---|
| 285 |
|
---|
| 286 | texture_unit
|
---|
| 287 | {
|
---|
| 288 | texture spacesky.jpg
|
---|
| 289 | }
|
---|
| 290 | }
|
---|
| 291 | }
|
---|
| 292 | }
|
---|
| 293 | material Examples/TextureEffect1
|
---|
| 294 | {
|
---|
| 295 | technique
|
---|
| 296 | {
|
---|
| 297 | pass
|
---|
| 298 | {
|
---|
| 299 | ambient 0.75 0.75 0.75
|
---|
| 300 | cull_hardware none
|
---|
| 301 | cull_software none
|
---|
| 302 |
|
---|
| 303 | texture_unit
|
---|
| 304 | {
|
---|
| 305 | texture BumpyMetal.jpg
|
---|
| 306 | rotate_anim 0.2
|
---|
| 307 | wave_xform scale_x sine 1 0.1 0 5
|
---|
| 308 | wave_xform scale_y sine 0.5 0.2 0.5 3
|
---|
| 309 | }
|
---|
| 310 | }
|
---|
| 311 | }
|
---|
| 312 | }
|
---|
| 313 | material Examples/TextureEffect2
|
---|
| 314 | {
|
---|
| 315 | technique
|
---|
| 316 | {
|
---|
| 317 | pass
|
---|
| 318 | {
|
---|
| 319 |
|
---|
| 320 | texture_unit
|
---|
| 321 | {
|
---|
| 322 | texture Water02.jpg
|
---|
| 323 | scroll_anim 0.5 0
|
---|
| 324 | }
|
---|
| 325 | }
|
---|
| 326 | }
|
---|
| 327 | }
|
---|
| 328 | material Examples/TextureEffect3
|
---|
| 329 | {
|
---|
| 330 | technique
|
---|
| 331 | {
|
---|
| 332 | pass
|
---|
| 333 | {
|
---|
| 334 | ambient 0.7 0.7 0.7
|
---|
| 335 | cull_hardware none
|
---|
| 336 | cull_software none
|
---|
| 337 |
|
---|
| 338 | texture_unit
|
---|
| 339 | {
|
---|
| 340 | texture Water01.jpg
|
---|
| 341 | scroll_anim -0.25 0.1
|
---|
| 342 | }
|
---|
| 343 |
|
---|
| 344 | texture_unit
|
---|
| 345 | {
|
---|
| 346 | texture Water01.jpg
|
---|
| 347 | colour_op_ex add src_texture src_current
|
---|
| 348 | colour_op_multipass_fallback one one
|
---|
| 349 | scroll_anim -0.1 0.25
|
---|
| 350 | }
|
---|
| 351 | }
|
---|
| 352 | }
|
---|
| 353 | }
|
---|
| 354 | material Examples/TextureEffect4
|
---|
| 355 | {
|
---|
| 356 | technique
|
---|
| 357 | {
|
---|
| 358 | pass
|
---|
| 359 | {
|
---|
| 360 | ambient 0.3 0.3 0.3
|
---|
| 361 | scene_blend colour_blend
|
---|
| 362 | cull_hardware none
|
---|
| 363 | cull_software none
|
---|
| 364 |
|
---|
| 365 | texture_unit
|
---|
| 366 | {
|
---|
| 367 | texture Water02.jpg
|
---|
| 368 | scroll_anim 0.01 0.01
|
---|
| 369 | }
|
---|
| 370 | }
|
---|
| 371 | }
|
---|
| 372 | }
|
---|
| 373 | material Examples/BumpyMetal
|
---|
| 374 | {
|
---|
| 375 | technique
|
---|
| 376 | {
|
---|
| 377 | pass
|
---|
| 378 | {
|
---|
| 379 | ambient 0.75 0.75 0.75
|
---|
| 380 | cull_hardware none
|
---|
| 381 | cull_software none
|
---|
| 382 |
|
---|
| 383 | texture_unit
|
---|
| 384 | {
|
---|
| 385 | texture BumpyMetal.jpg
|
---|
| 386 | }
|
---|
| 387 | }
|
---|
| 388 | }
|
---|
| 389 | }
|
---|
| 390 | material Examples/TransparentTest
|
---|
| 391 | {
|
---|
| 392 | technique
|
---|
| 393 | {
|
---|
| 394 | pass
|
---|
| 395 | {
|
---|
| 396 | ambient 0.2 0.2 0.2
|
---|
| 397 | scene_blend add
|
---|
| 398 | depth_write off
|
---|
| 399 |
|
---|
| 400 | texture_unit
|
---|
| 401 | {
|
---|
| 402 | texture Water01.jpg
|
---|
| 403 | scroll_anim 0.25 0
|
---|
| 404 | }
|
---|
| 405 |
|
---|
| 406 | texture_unit
|
---|
| 407 | {
|
---|
| 408 | texture Water01.jpg
|
---|
| 409 | wave_xform scroll_y sine 0 0.1 0 0.5
|
---|
| 410 | }
|
---|
| 411 | }
|
---|
| 412 | }
|
---|
| 413 | }
|
---|
| 414 | material Examples/Flare
|
---|
| 415 | {
|
---|
| 416 | technique
|
---|
| 417 | {
|
---|
| 418 | pass
|
---|
| 419 | {
|
---|
| 420 | lighting off
|
---|
| 421 | scene_blend add
|
---|
| 422 | depth_write off
|
---|
| 423 |
|
---|
| 424 | texture_unit
|
---|
| 425 | {
|
---|
| 426 | texture flare.png
|
---|
| 427 | }
|
---|
| 428 | }
|
---|
| 429 | }
|
---|
| 430 | }
|
---|
| 431 | material Examples/Flare2
|
---|
| 432 | {
|
---|
| 433 | technique
|
---|
| 434 | {
|
---|
| 435 | pass
|
---|
| 436 | {
|
---|
| 437 | lighting off
|
---|
| 438 | scene_blend add
|
---|
| 439 | depth_write off
|
---|
| 440 |
|
---|
| 441 | texture_unit
|
---|
| 442 | {
|
---|
| 443 | texture flaretrail.png
|
---|
| 444 | }
|
---|
| 445 | }
|
---|
| 446 | }
|
---|
| 447 | }
|
---|
| 448 |
|
---|
| 449 | material Examples/Droplet
|
---|
| 450 | {
|
---|
| 451 | technique
|
---|
| 452 | {
|
---|
| 453 | pass
|
---|
| 454 | {
|
---|
| 455 | scene_blend colour_blend
|
---|
| 456 | depth_write off
|
---|
| 457 |
|
---|
| 458 | texture_unit
|
---|
| 459 | {
|
---|
| 460 | texture basic_droplet.png
|
---|
| 461 | }
|
---|
| 462 | }
|
---|
| 463 | }
|
---|
| 464 | }
|
---|
| 465 | material Examples/Hilite/Yellow
|
---|
| 466 | {
|
---|
| 467 | technique
|
---|
| 468 | {
|
---|
| 469 | pass
|
---|
| 470 | {
|
---|
| 471 |
|
---|
| 472 | texture_unit
|
---|
| 473 | {
|
---|
| 474 | texture dkyellow.png
|
---|
| 475 | }
|
---|
| 476 | }
|
---|
| 477 | }
|
---|
| 478 | }
|
---|
| 479 | material Examples/Rocky
|
---|
| 480 | {
|
---|
| 481 | technique
|
---|
| 482 | {
|
---|
| 483 | pass
|
---|
| 484 | {
|
---|
| 485 | ambient 0.2 0.2 0.2
|
---|
| 486 |
|
---|
| 487 | texture_unit
|
---|
| 488 | {
|
---|
| 489 | texture egyptrockyfull.jpg
|
---|
| 490 | }
|
---|
| 491 | }
|
---|
| 492 | }
|
---|
| 493 | }
|
---|
| 494 | material Examples/10PointBlock
|
---|
| 495 | {
|
---|
| 496 | technique
|
---|
| 497 | {
|
---|
| 498 | pass
|
---|
| 499 | {
|
---|
| 500 |
|
---|
| 501 | texture_unit
|
---|
| 502 | {
|
---|
| 503 | texture 10points.png
|
---|
| 504 | }
|
---|
| 505 | }
|
---|
| 506 | }
|
---|
| 507 | }
|
---|
| 508 | material Material__25
|
---|
| 509 | {
|
---|
| 510 | technique
|
---|
| 511 | {
|
---|
| 512 | pass
|
---|
| 513 | {
|
---|
| 514 |
|
---|
| 515 | texture_unit
|
---|
| 516 | {
|
---|
| 517 | texture texmap2.jpg
|
---|
| 518 | }
|
---|
| 519 | }
|
---|
| 520 | }
|
---|
| 521 | }
|
---|
| 522 | material 2 - Default
|
---|
| 523 | {
|
---|
| 524 | technique
|
---|
| 525 | {
|
---|
| 526 | pass
|
---|
| 527 | {
|
---|
| 528 |
|
---|
| 529 | texture_unit
|
---|
| 530 | {
|
---|
| 531 | texture MtlPlat2.jpg
|
---|
| 532 | }
|
---|
| 533 | }
|
---|
| 534 | }
|
---|
| 535 | }
|
---|
| 536 | material Material #8
|
---|
| 537 | {
|
---|
| 538 | technique
|
---|
| 539 | {
|
---|
| 540 | pass
|
---|
| 541 | {
|
---|
| 542 |
|
---|
| 543 | texture_unit
|
---|
| 544 | {
|
---|
| 545 | texture BODY.jpg
|
---|
| 546 | }
|
---|
| 547 | }
|
---|
| 548 | }
|
---|
| 549 | }
|
---|
| 550 | material Material #3
|
---|
| 551 | {
|
---|
| 552 | technique
|
---|
| 553 | {
|
---|
| 554 | pass
|
---|
| 555 | {
|
---|
| 556 |
|
---|
| 557 | texture_unit
|
---|
| 558 | {
|
---|
| 559 | texture HEAD4.jpg
|
---|
| 560 | }
|
---|
| 561 | }
|
---|
| 562 | }
|
---|
| 563 | }
|
---|
| 564 | material Material #9
|
---|
| 565 | {
|
---|
| 566 | technique
|
---|
| 567 | {
|
---|
| 568 | pass
|
---|
| 569 | {
|
---|
| 570 |
|
---|
| 571 | texture_unit
|
---|
| 572 | {
|
---|
| 573 | texture LEGS.jpg
|
---|
| 574 | }
|
---|
| 575 | }
|
---|
| 576 | }
|
---|
| 577 | }
|
---|
| 578 |
|
---|
| 579 | material Examples/Fish
|
---|
| 580 | {
|
---|
| 581 | technique
|
---|
| 582 | {
|
---|
| 583 | pass
|
---|
| 584 | {
|
---|
| 585 | texture_unit
|
---|
| 586 | {
|
---|
| 587 | texture steelhead.png
|
---|
| 588 | }
|
---|
| 589 | }
|
---|
| 590 | }
|
---|
| 591 | }
|
---|
| 592 | material Examples/Ninja
|
---|
| 593 | {
|
---|
| 594 | technique
|
---|
| 595 | {
|
---|
| 596 | pass
|
---|
| 597 | {
|
---|
| 598 | cull_hardware none
|
---|
| 599 | cull_software none
|
---|
| 600 |
|
---|
| 601 | texture_unit
|
---|
| 602 | {
|
---|
| 603 | texture nskingr.jpg
|
---|
| 604 | }
|
---|
| 605 | }
|
---|
| 606 | }
|
---|
| 607 | }
|
---|
| 608 | material Examples/Ninja2
|
---|
| 609 | {
|
---|
| 610 | technique
|
---|
| 611 | {
|
---|
| 612 | pass
|
---|
| 613 | {
|
---|
| 614 |
|
---|
| 615 | cull_hardware none
|
---|
| 616 | cull_software none
|
---|
| 617 |
|
---|
| 618 | texture_unit
|
---|
| 619 | {
|
---|
| 620 | texture nskinwh.jpg
|
---|
| 621 | }
|
---|
| 622 | }
|
---|
| 623 | }
|
---|
| 624 | }
|
---|
| 625 |
|
---|
| 626 | material Examples/Trunk
|
---|
| 627 | {
|
---|
| 628 | technique
|
---|
| 629 | {
|
---|
| 630 | pass
|
---|
| 631 | {
|
---|
| 632 | cull_hardware none
|
---|
| 633 | cull_software none
|
---|
| 634 |
|
---|
| 635 | texture_unit
|
---|
| 636 | {
|
---|
| 637 | texture bark04_r.png
|
---|
| 638 | }
|
---|
| 639 | }
|
---|
| 640 | }
|
---|
| 641 | }
|
---|
| 642 |
|
---|
| 643 | material Examples/Robot
|
---|
| 644 | {
|
---|
| 645 | // Hardware skinning technique
|
---|
| 646 | technique
|
---|
| 647 | {
|
---|
| 648 | pass
|
---|
| 649 | {
|
---|
| 650 | vertex_program_ref Ogre/HardwareSkinningOneWeight
|
---|
| 651 | {
|
---|
| 652 | param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
|
---|
| 653 | param_named_auto viewProjectionMatrix viewproj_matrix
|
---|
| 654 | param_named_auto lightPos[0] light_position 0
|
---|
| 655 | param_named_auto lightPos[1] light_position 1
|
---|
| 656 | param_named_auto lightDiffuseColour[0] light_diffuse_colour 0
|
---|
| 657 | param_named_auto lightDiffuseColour[1] light_diffuse_colour 1
|
---|
| 658 | param_named_auto ambient ambient_light_colour
|
---|
| 659 |
|
---|
| 660 | }
|
---|
| 661 | // alternate shadow caster program
|
---|
| 662 | shadow_caster_vertex_program_ref Ogre/HardwareSkinningOneWeightShadowCaster
|
---|
| 663 | {
|
---|
| 664 | param_named_auto worldMatrix3x4Array[0] world_matrix_array_3x4
|
---|
| 665 | param_named_auto viewProjectionMatrix viewproj_matrix
|
---|
| 666 | param_named_auto ambient ambient_light_colour
|
---|
| 667 |
|
---|
| 668 | }
|
---|
| 669 |
|
---|
| 670 | texture_unit
|
---|
| 671 | {
|
---|
| 672 | texture r2skin.jpg
|
---|
| 673 | }
|
---|
| 674 | }
|
---|
| 675 | }
|
---|
| 676 |
|
---|
| 677 | // Software blending technique
|
---|
| 678 | technique
|
---|
| 679 | {
|
---|
| 680 | pass
|
---|
| 681 | {
|
---|
| 682 |
|
---|
| 683 | texture_unit
|
---|
| 684 | {
|
---|
| 685 | texture r2skin.jpg
|
---|
| 686 | }
|
---|
| 687 | }
|
---|
| 688 | }
|
---|
| 689 | }
|
---|
| 690 |
|
---|
| 691 | material Examples/GrassFloor
|
---|
| 692 | {
|
---|
| 693 | technique
|
---|
| 694 | {
|
---|
| 695 | pass
|
---|
| 696 | {
|
---|
| 697 | texture_unit
|
---|
| 698 | {
|
---|
| 699 | texture grass_1024.jpg
|
---|
| 700 | }
|
---|
| 701 | }
|
---|
| 702 | }
|
---|
| 703 | }
|
---|
| 704 |
|
---|
[1783] | 705 | material Demos/TerrainMixed
|
---|
| 706 | {
|
---|
| 707 | technique
|
---|
| 708 | {
|
---|
| 709 | pass
|
---|
| 710 | {
|
---|
| 711 | // lighting on
|
---|
| 712 | // Base Pass
|
---|
| 713 | ambient 0.6 0.6 0.6
|
---|
| 714 | diffuse 0.6 0.6 0.6
|
---|
| 715 | texture_unit
|
---|
| 716 | {
|
---|
| 717 | // Base Texture
|
---|
| 718 | texture grass_1024.jpg
|
---|
| 719 | scale 0.5 0.5
|
---|
| 720 | }
|
---|
| 721 | texture_unit
|
---|
| 722 | {
|
---|
| 723 | texture grass.png
|
---|
| 724 | colour_op_ex modulate_x2 src_current src_texture
|
---|
| 725 | scale 0.01 0.01
|
---|
| 726 | }
|
---|
| 727 | }
|
---|
| 728 |
|
---|
| 729 | pass
|
---|
| 730 | {
|
---|
| 731 | // Rock pass
|
---|
| 732 | ambient 0.6 0.6 0.6
|
---|
| 733 | diffuse 0.6 0.6 0.6
|
---|
| 734 | scene_blend alpha_blend
|
---|
| 735 | depth_func equal
|
---|
| 736 | texture_unit
|
---|
| 737 | {
|
---|
| 738 | // Alpha Map for rock
|
---|
| 739 | texture terrain_splat3.tga
|
---|
| 740 | tex_address_mode mirror
|
---|
| 741 | alpha_op_ex source1 src_texture src_texture
|
---|
| 742 | colour_op_ex source1 src_current src_current
|
---|
| 743 | scale 0.5 0.5
|
---|
| 744 | }
|
---|
| 745 |
|
---|
| 746 | texture_unit
|
---|
| 747 | {
|
---|
| 748 | // Rock Splatting texture
|
---|
| 749 | texture destina.jpg
|
---|
| 750 | tex_address_mode mirror
|
---|
| 751 | alpha_op_ex source1 src_current src_current
|
---|
| 752 | colour_op_ex source2 src_current src_texture
|
---|
| 753 | scale 0.01 0.01
|
---|
| 754 | }
|
---|
| 755 | }
|
---|
| 756 | }
|
---|
| 757 | }
|
---|
| 758 |
|
---|
[1092] | 759 | vertex_program Examples/GrassWaverVp cg
|
---|
| 760 | {
|
---|
| 761 | source Grass.cg
|
---|
| 762 | entry_point grass_vp
|
---|
| 763 | profiles vs_1_1 arbvp1
|
---|
| 764 | }
|
---|
| 765 |
|
---|
| 766 | material Examples/GrassBlades
|
---|
| 767 | {
|
---|
| 768 | // Vertex program waving grass
|
---|
| 769 | technique
|
---|
| 770 | {
|
---|
| 771 | pass
|
---|
| 772 | {
|
---|
| 773 | vertex_program_ref Examples/GrassWaverVp
|
---|
| 774 | {
|
---|
| 775 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 776 | param_named_auto ambient ambient_light_colour
|
---|
| 777 | param_named_auto objSpaceLight light_position_object_space 0
|
---|
| 778 | param_named_auto lightColour light_diffuse_colour 0
|
---|
| 779 | param_named_auto offset custom 999
|
---|
| 780 | }
|
---|
| 781 | alpha_rejection greater 150
|
---|
| 782 | scene_blend alpha_blend
|
---|
| 783 | cull_hardware none
|
---|
| 784 | cull_software none
|
---|
| 785 | texture_unit
|
---|
| 786 | {
|
---|
| 787 | texture gras_02.png
|
---|
| 788 | }
|
---|
| 789 | }
|
---|
| 790 | }
|
---|
| 791 |
|
---|
| 792 | // Non-vertex program technique (no waving)
|
---|
| 793 | technique
|
---|
| 794 | {
|
---|
| 795 | pass
|
---|
| 796 | {
|
---|
| 797 | alpha_rejection greater 150
|
---|
| 798 | scene_blend alpha_blend
|
---|
| 799 | cull_hardware none
|
---|
| 800 | cull_software none
|
---|
| 801 | texture_unit
|
---|
| 802 | {
|
---|
| 803 | texture gras_02.png
|
---|
| 804 | }
|
---|
| 805 | }
|
---|
| 806 | }
|
---|
| 807 | }
|
---|
| 808 |
|
---|
[1104] | 809 | material Examples/Populifolia/leaf
|
---|
| 810 | {
|
---|
| 811 | technique
|
---|
| 812 | {
|
---|
| 813 | pass
|
---|
| 814 | {
|
---|
| 815 | alpha_rejection greater 150
|
---|
| 816 | scene_blend alpha_blend
|
---|
| 817 | cull_hardware none
|
---|
| 818 | cull_software none
|
---|
| 819 | texture_unit
|
---|
| 820 | {
|
---|
[1116] | 821 | texture Pinus-leaf-inv.tif
|
---|
[1104] | 822 | }
|
---|
| 823 | }
|
---|
| 824 | }
|
---|
| 825 | }
|
---|
| 826 |
|
---|
| 827 | material Examples/Populifolia/trunk
|
---|
| 828 | {
|
---|
| 829 | technique
|
---|
| 830 | {
|
---|
| 831 | pass
|
---|
| 832 | {
|
---|
[1561] | 833 | cull_hardware clockwise
|
---|
[1104] | 834 | texture_unit
|
---|
| 835 | {
|
---|
| 836 | texture populifolia-trunk.png
|
---|
| 837 | }
|
---|
| 838 | }
|
---|
| 839 | }
|
---|
| 840 | }
|
---|
| 841 |
|
---|
[1783] | 842 | material Examples/ML11/leaf_orig
|
---|
[1561] | 843 | {
|
---|
| 844 | technique
|
---|
| 845 | {
|
---|
| 846 | pass
|
---|
| 847 | {
|
---|
| 848 | alpha_rejection greater 150
|
---|
| 849 | scene_blend alpha_blend
|
---|
| 850 | cull_hardware none
|
---|
| 851 | cull_software none
|
---|
| 852 | texture_unit
|
---|
| 853 | {
|
---|
| 854 | filtering linear linear none
|
---|
| 855 | texture ML11lef.tga
|
---|
| 856 | }
|
---|
| 857 | }
|
---|
| 858 | }
|
---|
| 859 | }
|
---|
| 860 |
|
---|
[1783] | 861 | material Examples/ML11/leaf
|
---|
| 862 | {
|
---|
| 863 | technique
|
---|
| 864 | {
|
---|
| 865 | pass
|
---|
| 866 | {
|
---|
| 867 | alpha_rejection greater 150
|
---|
| 868 | cull_hardware none
|
---|
| 869 | texture_unit
|
---|
| 870 | {
|
---|
| 871 | filtering linear linear linear
|
---|
| 872 | texture ml11lef.dds
|
---|
| 873 | }
|
---|
| 874 | }
|
---|
| 875 | }
|
---|
| 876 | }
|
---|
| 877 |
|
---|
| 878 |
|
---|
| 879 |
|
---|
| 880 | ///////////////////////////////////////////////////////////////////////////////////////////
|
---|
| 881 | // Bump map vertex program, support for this is required
|
---|
| 882 |
|
---|
| 883 | vertex_program Lodtree/BumpMapVP cg
|
---|
| 884 | {
|
---|
| 885 | source LodTree_BumpMapping.cg
|
---|
| 886 | entry_point main_vp
|
---|
| 887 | profiles vs_1_1 arbvp1
|
---|
| 888 | }
|
---|
| 889 |
|
---|
| 890 | // Bump map fragment program, support for this is optional
|
---|
| 891 | fragment_program Lodtree/BumpMapFP cg
|
---|
| 892 | {
|
---|
| 893 | source LodTree_BumpMapping.cg
|
---|
| 894 | entry_point main_fp
|
---|
| 895 | profiles ps_2_0 arbfp1 fp20
|
---|
| 896 | }
|
---|
| 897 |
|
---|
| 898 |
|
---|
| 899 | // Single light material, less passes (one pass on a 4-unit card)
|
---|
| 900 | //material Demos/ML06/Leaf
|
---|
| 901 | //{
|
---|
| 902 | // // Preferred technique, uses vertex and fragment programs
|
---|
| 903 | // // to support a single coloured light
|
---|
| 904 | // technique
|
---|
| 905 | // {
|
---|
| 906 | // pass
|
---|
| 907 | // {
|
---|
| 908 | // // base colours, not needed for rendering, but as information
|
---|
| 909 | // // to lighting pass categorisation routine
|
---|
| 910 | // ambient 0.7 0.7 0.7
|
---|
| 911 | // // Vertex program reference
|
---|
| 912 | // vertex_program_ref Lodtree/BumpMapVP
|
---|
| 913 | // {
|
---|
| 914 | // param_named_auto lightPosition light_position_object_space 0
|
---|
| 915 | // param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 916 | // }
|
---|
| 917 | //
|
---|
| 918 | // // Fragment program
|
---|
| 919 | // fragment_program_ref Lodtree/BumpMapFP
|
---|
| 920 | // {
|
---|
| 921 | // param_named_auto lightDiffuse light_diffuse_colour 0
|
---|
| 922 | // }
|
---|
| 923 | //
|
---|
| 924 | // // Decal
|
---|
| 925 | // texture_unit
|
---|
| 926 | // {
|
---|
| 927 | // texture ml06lef.dds
|
---|
| 928 | // }
|
---|
| 929 | // }
|
---|
| 930 | // }
|
---|
| 931 | //
|
---|
| 932 | //}
|
---|
| 933 |
|
---|
| 934 |
|
---|
[1561] | 935 | material Examples/ML11/trunk
|
---|
| 936 | {
|
---|
| 937 | technique
|
---|
| 938 | {
|
---|
| 939 | pass
|
---|
| 940 | {
|
---|
| 941 | cull_hardware clockwise
|
---|
| 942 | texture_unit
|
---|
| 943 | {
|
---|
| 944 | texture ML11brk.tif
|
---|
| 945 | }
|
---|
| 946 | }
|
---|
| 947 | }
|
---|
| 948 | }
|
---|
| 949 |
|
---|
[1783] | 950 | material Demos/ML06/Leaf
|
---|
| 951 | {
|
---|
| 952 | technique
|
---|
| 953 | {
|
---|
| 954 | pass
|
---|
| 955 | {
|
---|
| 956 | ambient 1 1 1
|
---|
| 957 | alpha_rejection greater 150
|
---|
| 958 | cull_hardware none
|
---|
| 959 | cull_software none
|
---|
| 960 | texture_unit
|
---|
| 961 | {
|
---|
| 962 | filtering linear linear linear
|
---|
| 963 | texture ml06lef.dds
|
---|
| 964 | }
|
---|
| 965 | }
|
---|
| 966 | }
|
---|
| 967 | }
|
---|
| 968 |
|
---|
| 969 |
|
---|
| 970 | material Demos/ML06/Trunk
|
---|
| 971 | {
|
---|
| 972 | technique
|
---|
| 973 | {
|
---|
| 974 | pass
|
---|
| 975 | {
|
---|
| 976 | cull_hardware clockwise
|
---|
| 977 | texture_unit
|
---|
| 978 | {
|
---|
| 979 | texture ML15brk.tif
|
---|
| 980 | }
|
---|
| 981 | }
|
---|
| 982 | }
|
---|
| 983 | }
|
---|
| 984 |
|
---|
| 985 | material Demos/ML15/Trunk
|
---|
| 986 | {
|
---|
| 987 | technique
|
---|
| 988 | {
|
---|
| 989 | pass
|
---|
| 990 | {
|
---|
| 991 | cull_hardware clockwise
|
---|
| 992 | texture_unit
|
---|
| 993 | {
|
---|
| 994 | texture ML15brk.tif
|
---|
| 995 | }
|
---|
| 996 | }
|
---|
| 997 | }
|
---|
| 998 | }
|
---|
| 999 |
|
---|
| 1000 | material Demos/ML15/Leaf
|
---|
| 1001 | {
|
---|
| 1002 | technique
|
---|
| 1003 | {
|
---|
| 1004 | pass
|
---|
| 1005 | {
|
---|
| 1006 | alpha_rejection greater 150
|
---|
| 1007 | cull_hardware none
|
---|
| 1008 | ambient 1 1 1
|
---|
| 1009 | texture_unit
|
---|
| 1010 | {
|
---|
| 1011 | filtering linear linear linear
|
---|
| 1012 | texture ml15lef.dds
|
---|
| 1013 | }
|
---|
| 1014 | }
|
---|
| 1015 | }
|
---|
| 1016 | }
|
---|
| 1017 |
|
---|
| 1018 | material Demos/ML13/Trunk
|
---|
| 1019 | {
|
---|
| 1020 | technique
|
---|
| 1021 | {
|
---|
| 1022 | pass
|
---|
| 1023 | {
|
---|
| 1024 | cull_hardware clockwise
|
---|
| 1025 | texture_unit
|
---|
| 1026 | {
|
---|
| 1027 | texture ML13brk.tif
|
---|
| 1028 | }
|
---|
| 1029 | }
|
---|
| 1030 | }
|
---|
| 1031 | }
|
---|
| 1032 |
|
---|
| 1033 | material Demos/ML13/Leaf
|
---|
| 1034 | {
|
---|
| 1035 | technique
|
---|
| 1036 | {
|
---|
| 1037 | pass
|
---|
| 1038 | {
|
---|
| 1039 | alpha_rejection greater 150
|
---|
| 1040 | cull_hardware none
|
---|
| 1041 | ambient 1 1 1
|
---|
| 1042 | texture_unit
|
---|
| 1043 | {
|
---|
| 1044 | filtering linear linear linear
|
---|
| 1045 | texture ml13lef.dds
|
---|
| 1046 | }
|
---|
| 1047 | }
|
---|
| 1048 | }
|
---|
| 1049 | }
|
---|
| 1050 |
|
---|
[1092] | 1051 | material Examples/Rockwall
|
---|
| 1052 | {
|
---|
| 1053 | technique
|
---|
| 1054 | {
|
---|
| 1055 | pass
|
---|
| 1056 | {
|
---|
| 1057 | texture_unit
|
---|
| 1058 | {
|
---|
| 1059 | texture rockwall.tga
|
---|
| 1060 | }
|
---|
| 1061 | }
|
---|
| 1062 | }
|
---|
| 1063 | }
|
---|
| 1064 |
|
---|
| 1065 | material TestTerrainMaterial
|
---|
| 1066 | {
|
---|
| 1067 | technique
|
---|
| 1068 | {
|
---|
| 1069 | pass
|
---|
| 1070 | {
|
---|
| 1071 |
|
---|
| 1072 | texture_unit
|
---|
| 1073 | {
|
---|
| 1074 | texture terrain_texture.jpg
|
---|
| 1075 | }
|
---|
| 1076 |
|
---|
| 1077 | }
|
---|
| 1078 | }
|
---|
| 1079 | } |
---|