Oh, I forgot to mention that since that shader is an adaptation from XD1v0, you still need the projMain.c from this wiki:
http://www.opserver.de/wiki/index.php/ProjectionTexture