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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Subsurface scattering (sss) with directional light shadows

Discussion in 'High Definition Render Pipeline' started by adamb70, Apr 3, 2020.

  1. adamb70

    adamb70

    Joined:
    Sep 12, 2018
    Posts:
    9
    I'm trying out the new SSS options in the HDRP shader, and it seems like the SSS ignores self shadowing from directional lights causing ears and noses to glow in the shadows. It works as expected with spot lights. Is this a known limitation or am I missing a setting somewhere?

     
  2. jonbeilin

    jonbeilin

    Joined:
    Mar 16, 2018
    Posts:
    6
    The two images you're comparing have very different amounts of light on the figure relative to the overall scene – the directional shot i'm guessing has autoexposure on and is reducing the overall exposure to avoid blowing out the background. You'll want to set the exposure to fixed in your volume profile before comparing lights.

    Re: SSS and glowing ears etc, have you checked the thickness on the shader and the scale in your diffusion profile?
     
  3. adamb70

    adamb70

    Joined:
    Sep 12, 2018
    Posts:
    9
    Hi, thanks for the reply. Exposure was fixed for the screenshots, this is definitely a difference between the direction lights and all the others. I mentioned in my first post that I thought it was an issue with self-shadowing, but even when the character is enclosed in a room with no light source the SSS still glows if the directional light is enabled outside.

    The directional light is the only one enabled here, exposure fixed. upload_2020-4-3_17-37-14.png

    I'm using the default HDRP skin diffusion profile so I don't think that will be the issue, but I'll mess with the values and post here if I can fix it.
     

    Attached Files:

    jonbeilin likes this.
  4. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    932
    Hi yes sorry we will update the documentation. We are currently not supporting the "thick" transmission mode on directional light due to cost (cascade) and the poor quality of it (too low resolution).
     
  5. Legion555

    Legion555

    Joined:
    Mar 22, 2014
    Posts:
    4
    Hi, I have the same problem, what is the workaround or solution?
     
  6. Yulian-Titov148

    Yulian-Titov148

    Joined:
    Feb 17, 2014
    Posts:
    15
    Hi,

    I hope that you already solved that issue, but, here is an a workaround which I found.
    You could try to use Indirect Light Controller in your Volume and set Indirect Diffuse Lighting Multiplier to 0 (or appropriate value).

    Hope, it helps.

    With regards,
    Yulian
     

    Attached Files:

    adamb70 likes this.