Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Complex Shader, based by position

Discussion in 'General Graphics' started by LucaBosio, May 23, 2023.

  1. LucaBosio

    LucaBosio

    Joined:
    May 1, 2023
    Posts:
    1
    good morning, i'm creating a procedural map, the terrain material shader was inizalment done in cs, now i'm trying to use URP, but it seems not optimal for what i want to do, summarizing based on the coordinates on the terrain the color is different, but also according to the altitude and inclination of the mesh, the shader in cs had no problem calculating the various if, but in URP it seems very difficult to use this method, now I am using the comparison function in URP, but there are there other methods?
    it seems that URP calculates all the functions even if they don't concern the precise point where I am, only then decides which color and material to use.
     
    Last edited: May 23, 2023