Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How can i get correct shadow/light effect when using stencil buffer to dig hole in a wall?

Discussion in 'General Graphics' started by ununion, Nov 17, 2020.

  1. ununion


    Dec 2, 2018
    Hey guys,i m now creating a The Sims like construction system ,and now I want to implement setting the window/door in the wall,to get the transparency effect i m using stencil buffer to achieve it so i get a hole in the wall,but the light cannot through the hole,and shadow is also incorrect without any hole.
    so is there anyway to fix it?
    sorry for my English.