Search Unity

Question Terrain Trees/Details issue...

Discussion in 'General Graphics' started by timsamoff, Nov 17, 2022.

  1. timsamoff

    timsamoff

    Joined:
    Sep 9, 2017
    Posts:
    5
    I know Unity Terrain isn’t the most robust thing but has anyone ever seen this issue where a plane (in this case, the water) clips trees/details at certain angles?

    I had the same issue with a particle effect that I was able to fix by creating a unique Sorting Layer, but Sorting Layers in 3D...?

    Anyway, I have never seen this one before, so hopefully, one of you knows how to fix it.



    Thanks!
     
  2. warthos3399

    warthos3399

    Joined:
    May 11, 2019
    Posts:
    1,749
    Are you sure it isnt a camera rendering issue?. Like near/far plane, etc.?.
     
  3. RZR_SRT

    RZR_SRT

    Joined:
    Dec 18, 2012
    Posts:
    18
    C
    Hi! Can You make short video with camera panning around, and shaders settings on trees and water?
    Looks like water and trees shaders both did not write in to depth buffer, so those objects are sorts only by distance from camera without clipping by depth buffer.
    Probably quick fix will be lowering queue on water shader, so water will renders only after trees.
     
    Last edited: Nov 18, 2022
  4. timsamoff

    timsamoff

    Joined:
    Sep 9, 2017
    Posts:
    5
    Definitely not a near/far plane issue.
     
  5. timsamoff

    timsamoff

    Joined:
    Sep 9, 2017
    Posts:
    5
    Thank you. I'll try your suggestion and then share a video if it doesn't work.