How to make afterimagepass work only on a single geometry?

my code:

    let afterimagePass = new THREE.AfterimagePass();


    afterimagePass.uniforms['damp'] = { value: 0.7 };

There are many geometries in one of my scenes, but I only want a few of them to use the afterimagepass effect.
how to set it?
Help me, thank you

There is no configurable way of doing this. You need essentially the same approach like in the following example: three.js webgl - postprocessing - unreal bloom selective

Instead of applying a bloom effect on certain objects, you have to use AfterimagePass.


thank you.