Custom Shaders for Republic Commando

If I may, just how exactly does one create a custom shader for use in Star Wars: Republic Commando’s unrealed.exe? I simply cannot comprehend how they are made exactly, and some advice would be very helpful.