Search Unity

Question Depth buffer for distance

Discussion in 'Shaders' started by VictorKs, Dec 8, 2020.

  1. VictorKs

    VictorKs

    Joined:
    Jun 2, 2013
    Posts:
    242
    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?