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

Bug AO See through material using stencil

Discussion in 'Shaders' started by TR-Jerome, Jul 14, 2022.

  1. TR-Jerome

    TR-Jerome

    Joined:
    Aug 14, 2018
    Posts:
    2
    Hi,

    I'm facing a bug in URP using stencil and AO, the material used for the 'countertop' is opaque but seems transparent as the AO appairs on top for the meshs that are bellow :
    AO.png

    I'm using render feature to make the stencil :
    upload_2022-7-14_20-55-12.png

    upload_2022-7-14_20-55-41.png

    Does anyone have a idea how to fix it and why it happened that way?
    Thanks.