Search Unity

Question Distance blend material (LOD for textures)

Discussion in 'Shaders' started by Jon_Huhn, Aug 12, 2022.

  1. Jon_Huhn

    Jon_Huhn

    Joined:
    May 2, 2020
    Posts:
    11
    I'm working on a hobby side project, a simple flight sim for my Quest 2. I'd like to experiment with using tiled maps based on satellite imagery applied to mesh objects for my ground. In order to hide or minimize the tiling effect, I'd like to have a URP shader that allows blending between multiple texture maps based on distance. I know various shaders already have a "detail map" parameter, but I need to blend between probably 4 maps and not just 2. Are there any existing shaders that might meet my need, or if not, can someone give me a starting tip on how that's implemented in a custom shader? Thanks!