Afterimage pixellation

postprocessing

#1

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?

Without AfterimagePass:

With AfterimagePass:


#2

This question was already answered here: Why framebuffer no anti-aliasing? direct render have anti-aliasing


#3

Thank you – do you happen to know why the afterimage effect is only visible against a dark background?


#4

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.


#5

Gotcha - do you have any suggestions on how to fix that? :slight_smile:


#6

No^^. But maybe you find an alternative afterimage shader at shadertoy or similar sites.


#7

I got it working – I just needed to turn on the alpha buffer in the renderer. :smiley: