Search Unity

  1. Get all the Unite Berlin 2018 news on the blog.
    Dismiss Notice
  2. Unity 2018.2 has arrived! Read about it here.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Learn more.
    Dismiss Notice
  4. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  5. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

HDRP Lit Shader detail map issue

Discussion in 'Graphics Experimental Previews' started by Koach, Jul 14, 2018.

  1. Koach


    Feb 14, 2018
    I've been trying to figure out how the detail map inputs work on the new lit shader, and so far I'm extremely confused. I followed the documentation here:

    And created a test image, creating black and white values directly on the red, green and blue channels, and erasing half the image as well to test the effects of extremes in all the different channels, and the results are...extremely confusing. Is there a more detailed guide on how to make detail maps for the new lit shader?
    detail map test.png
    issue with detail map.jpg
  2. Remy_Unity


    Unity Technologies

    Oct 3, 2017
    There is no guide currently, but I will try to compare it to how the Built-In standard detail maps works :
    Basically, detail maps contain surface informations (albedo, normal, smoothness) that are added to the base surface information, in ordre to be used with a high tilling value.
    In the Built-In standard shader, the detail maps are Albedo and Normal. In HDRP, we wanted to optimize the number of texture samplers in a material, and that's why there is only one map used for detail, where :
    • The red channel contains the albedo variation. It is applied to the underlying material in an "Overlay" blend mode, similar to photoshop. You can create this channel by simply desaturating the built-in detail albedo.
    • The green channel contains the normal Y value. Simply use the green channel of the built-in detail normal.
    • The blue channel contains the smoothness variation. One again, it is applied with an "Overlay" blending, and this can either be done by using the smoothness map of your detail material if you have one, or creating is from the albedo, or leaving it to a mid-gray value to keep the underlying smoothness unchanged.
    • The alpha channel contains the normal X. Like for the blue channel, you can simply use the red channel of the built-in detail normal.
    I hope this was clear enough and that it helped you.
    KUDr likes this.
  3. OfficialHermie


    Oct 12, 2012
    @Remy_Unity I understand what a detail normal map is, it's an overlay for fine details.
    But what is an "albedo variation"?