Implement PaintTerrain().