Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

New terrain shaders - Diffuse Alpha becomes Density?

Discussion in 'World Building' started by NumT, May 9, 2019.

  1. NumT

    NumT

    Joined:
    Feb 13, 2014
    Posts:
    19
    What does this mean? Can it be used for better blending between layers or something? There is little to no explanation and searching online for terms like "density map" present me with too broad results. Anyone know what it's all about?
     
  2. wyatttt

    wyatttt

    Unity Technologies

    Joined:
    May 9, 2018
    Posts:
    271
    This means that if you provide a Mask Texture to the Terrain Layer, the alpha channel on the diffuse texture is used as a density value in the Terrain shader (instead of being unused). The case you bring up, in particular, is about the High Definition Render Pipeline's usage of the Diffuse Texture and Mask Texture. If a Mask Texture isn't provided on the Terrain Layer, the alpha channel is used for Smoothness.
     
  3. tbn

    tbn

    Joined:
    Oct 11, 2014
    Posts:
    3
    I think the question is "What is a density map?"
     
  4. ChrisTchou

    ChrisTchou

    Unity Technologies

    Joined:
    Apr 26, 2017
    Posts:
    65