KatsBits Community

Organising frequently used shaders

kat · 1 · 7801

0 Members and 1 Guest are viewing this topic.

Offline kat

  • Administrator
  • Hero Member
  • *
    • Posts: 2721
    • KatsBits
If you're finding that having a good number of shaders in the materials files for the games you edit are getting the better of you because of having to constantly scroll up and down a sometimes very long page, then try the following tip.

At the very top of the file add a section into which you copy the most frequently used shader references, making sure they're commented out so the don't break the scripts below. Doing this will allow you to do a simply copy/paste of these items without trying to track a reference further down the file.

If you're doing a lot of work with models, ASE for example, all you need to is copy from "//q4base...." to the end of each line into the *BITMAP ref of the ASE and your done.

Code: [Select]
//SHADER REFERENCES

//paths used for ASE map objects

//q4base/textures/kat_q4dm2/lava_decal
//q4base/textures/kat_q4dm2/lava_top
//q4base/textures/kat_q4dm2/lava
//q4base/textures/kat_q4dm2/stone_mix
//q4base/textures/kat_q4dm2/slab_mix

//----------------------------

//SHADERS

//q4base/textures/kat_q4dm2/floor_v1 //path to add to models
textures/kat_q4dm2/floor_v1

....

...

[shaders would continue below]