Glow effect for Particles2D using WorldEnvironment

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Zaven Muradyan

I’m trying to follow the environment and post-processing guide in order to get some glowy 2d particles. I have the HDR Threshold set to 1, so I’d expect the glow effect to occur whenever a pixel passes over the “white” value (via e.g. a RAW color modulate).

It seems to work fine if I just take a normal sprite and change its modulate value to RAW and >1 (which is the “white” value in RAW mode), everything seems to work fine:

modulate ui

However, if I try to do the same thing for a Particles2D (e.g. by changing the Color Ramp in its ParticlesMaterial), it doesn’t seem to work at all. I checked the actual .tscn file, and the ParticlesMaterial seems to have the correct values (it gets encoded as a PoolColorArray). Any ideas why this doesn’t work with particles? Is this just an engine bug, or am I doing something wrong?

I’m using v3.0.2.stable.

If you’re curious, here’s the project where I’m trying to get this working - specifically, this particles scene.

:bust_in_silhouette: Reply From: Zaven Muradyan

It turns out that this only works if you set the modulate color to >1 in RAW mode on the actual Particles2D node itself in addition to setting up the proper color ramp that you want in the ParticlesMaterial (e.g. the Color Ramp section of the material).

Once I did that, the glow effect worked great!


:bust_in_silhouette: Reply From: scrubswithnosleeves

I just made a tutorial on how to do just this if any future readers are confused: