Occlusion Effect on Transparent Material

Post Reply
MaxFromHotmax
Posts: 1
Joined: Fri Apr 06, 2018 4:07 am

Occlusion Effect on Transparent Material

Post 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
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Occlusion Effect on Transparent Material

Post 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!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Post Reply