refactored to origina;l shaders from o'Neil http://http.download.nvidia.com/developer/GPU_Gems_2/CD/Index.html