Is it safe to rely on depth buffer for terrain shader? I want to calculate distance to change far tiling of texture. Also I want to disable terrain shadows for performance gain will that stop depth write?