Steal some shader code from OGRE and SkyX.