Adding SSAO pass to a scene in threejs

ssao

Hello! I have added SSAO pass to the above image scene. But I do not want the SSAO pass to be implemented on the plane below the cube as it is displaying lines like in the image above.
Can anyone help me with that?

There is no easy way to implement what you are looking for since the ambient occlusion is applied to the entire image by default. You probably need a similar approach like in webgl_postprocessing_unreal_bloom_selective which only applies bloom to selected objects.

Okay! Thank you. The main intention is to remove the jagged lines(displayed beheind the model in the attached picture) from the screen while implementing SSAOPass. Any inputs would be appreciated.

The jagged lines are appearing on the objects which are transparent(transparency:true). Any reason why this is happening?