Page 1 of 1

Occlusion Effect on Transparent Material

PostPosted: Fri Apr 06, 2018 4:10 am
by MaxFromHotmax
Hello,
I was wondering if it's possible to have an occlusion effect show up on a Transparent or Fade material.

Thanks,
Max

Re: Occlusion Effect on Transparent Material

PostPosted: Fri Apr 06, 2018 1:44 pm
by Amplify_Borba
Ambient Occlusion is applied before any transparent object is rendered and depends on the depth, in order for it to affect Transparent or Fade materials they'd have to be using a custom shader that could write to the depth, since Unity's Standard Surface Shaders do not, because by default their materials don't write in the depth buffer (which means they can't be used to compute ambient occlusion at all).

Please let me know if you have any further questions, thanks!