So there's one more update. This will however be the last update for a while since I'm running out of ideas for the shader and I'm having other ideas for other mods. So I'll be moving on to work
on some different mods for a while. For the 0.50 version I rewrote the lighting, now the used method is reflection vector rather than the previous halfangle vector. This is a much more accurate method as illustrated in the screenshots. Notice that the screens now compare the 0.50 version to 0.40, not the original Doom 3 shader. Other subject discussed in the comments has been the perfomance. I made a quick test running my Geforce 6800GT at 1600x1200 4xAA. The demo1 timedemo score fell 14% for the 0.40 version and 20% for the 0.50 version. The 0.50 has probably doubled the fragment program lenght and yet there is only 20% penalty for performance. The modern GPUs are very efficiently pipelined indeed.