Search Unity

Question How Can I Make Transparent Objects Be Visible in Raytraced Reflections?

Discussion in 'High Definition Render Pipeline' started by cerrec, Mar 8, 2023.

  1. cerrec

    cerrec

    Joined:
    Jan 19, 2017
    Posts:
    41
    Title says it all. Transparent objects simple don't show up in raytraced reflections. I've searched and searched and can't find an answer to this problem. Please don't suggest using reflections probes. This has to be raytraced.

    Thanks!
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,043
    Which unity/hdrp version?
     
  3. cerrec

    cerrec

    Joined:
    Jan 19, 2017
    Posts:
    41
    I'm using 2023.1.0b5 and HPRP 15.04, but the problem exists in all earlier versions, as well.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,043
  5. chap-unity

    chap-unity

    Unity Technologies

    Joined:
    Nov 4, 2019
    Posts:
    765
    The only way is to use Recursive Rendering.
    With RayTraced Reflection (SSR override) you won't be able to get any transparent objects in the reflections.

    Screen Space Reflection Transparent is for Transparent to RECEIVE Screen Space Reflection, not for them to appear in SSR.
     
    DevDunk likes this.
  6. cerrec

    cerrec

    Joined:
    Jan 19, 2017
    Posts:
    41
    OMG, it works! In the past, I had tried turning on Recursive Rendering in the override, but what I didn't know is you also have to turn it on in the reflecting Material, as well. Thank you, thank you!

    Suggestion: It would be useful if you could mention this in the tooltip popup for Recursive Rendering in the override.
     
    Last edited: Mar 8, 2023
    chap-unity and DevDunk like this.