Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Transparent Materials behind transparent surface

Discussion in 'High Definition Render Pipeline' started by SaphiBlue, Feb 23, 2020.

  1. SaphiBlue

    SaphiBlue

    Joined:
    Apr 18, 2016
    Posts:
    43
    Hello,

    I attached 2 screenshots which shows the problem. The leafs of the Tree are not visible under the water surface, which looks a little bit wierd.

    Both materials are having the surfacetype Transparent.

    If I set the Leafs to opaque the effect is gone, but the rendering as opaque material is not very fitting for tree leafs.

    Does someone know whats goning on there or wich settings I should choose?
     

    Attached Files:

  2. SebLagarde

    SebLagarde

    Unity Technologies

    Joined:
    Dec 30, 2015
    Posts:
    934
    Hi, your water use refraction right?, when using refraction, to be able to see a transparent object inside refraction it need to be in the render pass: "Pre-Refraction". You can find this render pass property in the settings of the master node (or on the lit.shader) when selecting surface type transparent
     
    SaphiBlue likes this.
  3. SaphiBlue

    SaphiBlue

    Joined:
    Apr 18, 2016
    Posts:
    43
    Hello,

    No the water uses distortion.

    I investigated trough my Project:
    For some Reasion 'Transparent Depth Prepass' was enabled. Disabling it and the switch the material to the pre-refraction pass solved the problem.

    Thank you :3
     
    Last edited: Mar 1, 2020