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

Question Subsurface scattering shadergraph has purple hued preview, but material works fine?

Discussion in 'High Definition Render Pipeline' started by nassredean, Aug 16, 2022.

  1. nassredean

    nassredean

    Joined:
    Oct 6, 2013
    Posts:
    2
    I'm not sure if this is a bug, or if there is something I am missing about using subsurface scattering in a material. When creating a ShaderGraph in the HDRP whose Material Type is SubsurfaceScattering, applying a diffusion profile, and then linking the diffusion profile to the global HDRP settings, I still see a purple tinted preview both in the shadergraph preview and the material preview:

    Screen Shot 2022-08-16 at 11.57.59 AM.png

    As you can see, the material appears to be working properly in game, both in edit/play views. But despite this, the previews render purplish. I followed the instructions here: https://docs.unity3d.com/Packages/c...nition@14.0/manual/Subsurface-Scattering.html to setup my project/scene for SSS. The documentation mentions this problem and states that it occurs when the material doesn't have a diffusion profile assigned, or when the diffusion profile is not valid because it is not linked.

    This is despite the fact that I have linked the diffusion profile:

    Screen Shot 2022-08-16 at 11.56.01 AM.png

    so I am not sure what I am missing. Is this a bug?
     
  2. nassredean

    nassredean

    Joined:
    Oct 6, 2013
    Posts:
    2
    I'm pretty sure this is in fact a bug. I should mention that this also happens when creating a SSS material directly, and not using a custom shader. I am using 2022.2.0b4.2768. As an experiment I tried doing the same thing in a 2021 version of unity and it works correctly.