Implemented texturing for raycaster.