Make Pass (SSAO) not affect transparent objects

Hello everyone :slight_smile:

I’m trying to apply the SSAO effect from GitHub - pmndrs/postprocessing: A post processing library that provides the means to implement image filter effects for three.js. and it’s working great, except meshes that have transparency.

You can clearly see in the image how these meshes with alpha maps are being affected by the SSAO effect. I want to avoid it.

Any ideas how to achieve it?

Hello! Maybe need to cut alpha with option alphaTest:0.5

I’ve tweaked that value already, does not work. Won’t affect :frowning:

i’ve seen this before but never knew what it even was to pose a question, so it’s alpha. you could ask @vanruesc directly, not sure if he’s here often but he’s got a channel on pmndrs discord, or on github.

1 Like

Some experminents


1 Like