Change terrain code to different passes. First pass divides ground and sky.