Cleaned up and optimized raymarcher.