AfterImagePass on white scene background?


I have a simple scene with rotating an object, when the scene background is set to black, you can cleary see the AfterImagePass and the result looks amazing, howerer if you switch to light mode where the scene background is set to white, you dont see that AfterImagePass effect anymore and during the rotation the model is looking more transparent instead.
Is this how it is intended to be or am I missing something?

const afterimagePass = new AfterimagePass();

const composer = new EffectComposer(renderer);
composer.addPass(new RenderPass(scene, camera));

here is how I initilize the passes,
and here is how it is animated:

   function render() {



render() is initialized as soon as the model is loaded.

Any tips or advices are welcomed.
Thank you!

If you look at the source code for AfterImagePass here, the effect is really driven by brighter areas of the scene:

If the background is white (max brightness) you’ll get the reverse effect, where the background creates an “after image” over the content. It might be best to modify this example to create the effect you’re after.

1 Like

Oh now I see, I didnt really dug into the shader itself, thank you very much for the clarification, that sums it up.

Best regards!