Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to make terrain blending shader

Discussion in 'Shader Graph' started by bugaj, Jun 2, 2022.

  1. bugaj

    bugaj

    Joined:
    Jun 28, 2015
    Posts:
    58
    RightfulYeti likes this.
  2. Jesper-Nielsen

    Jesper-Nielsen

    Joined:
    Nov 14, 2013
    Posts:
    95
    Lux URP has 2 shaders like that - terrain blend and versatile blend.
    https://assetstore.unity.com/packages/vfx/shaders/lux-urp-essentials-150355
    The versatile blend can blend with any non-transparent material, but as it is painted in the transparent pass it doesn't work if behind a transparent material that uses the opaque layer, such as a water shader.
    The terrain blend shader on the other hand doesn't have that limitation, at the cost of each material having to be tailored to a specific terrain.
    I don't know how visible it is, but this rock blends with the bottom of the pond, while still showing up correctly under water.
    terrainblend.png
     
    Last edited: Jun 30, 2022
    PutridEx likes this.