Search Unity

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:
    22
    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. wyattt_

    wyattt_

    Unity Technologies

    Joined:
    May 9, 2018
    Posts:
    424
    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:
    74