Does anyone know why rendering with the AfterimagePass results in rougher / pixellated edges? Also, the motion trails are only visible when renderer.setClearColor or scene.background are set to a dark color or undefined. Is it possible to set up the scene so the trails are visible in front of a white background?
This question was already answered here: Why is a custom FBO not antialiased? - #2 by Mugen87
2 Likes
Thank you – do you happen to know why the afterimage effect is only visible against a dark background?
I think this is a limitation of AfterimageShader
. The fragment shader always picks the maximum color value between the old and new texel.
If you have a white background, the respective color will always have a higher value.
Gotcha - do you have any suggestions on how to fix that?
No^^. But maybe you find an alternative afterimage shader at shadertoy or similar sites.
1 Like
I got it working – I just needed to turn on the alpha buffer in the renderer.
1 Like