Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. We are looking for your feedback about Templates! Tell us about your experiences by taking our survey.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help Wanted "Lines" on procedural mesh

Discussion in 'Global Illumination' started by gregor039, Jan 24, 2021.

  1. gregor039

    gregor039

    Joined:
    Mar 9, 2019
    Posts:
    4
    Hi,
    I create a procedural map at runtime with chunked meshes. These meshes use the HDRP/Lit shader which causes the lines, shown in the image below, to appear when moving the camera.
    The issue does not appear when using the HDRP/Unlit shader, but that makes it impossible to distinguish the blocks and everything looks link one mass.
    Is there a way to prevent the lighting to cause the lines?

    artifacts.PNG
     
  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    558
    What you are experiencing here seems to be reminiscent of Moire Pattern. You will most likely have to develop a custom shader for this. You could fade block geometry away and replace it with a heightmap texture * color value in the distance.
     
unityunity