Adding lights to individual particles in ParticleEmitter2d

Godot Version



Is it possible to add a light or light effect to individual particles from a emitter2d?

I’ve added firefly to my game

but I don’t like how some fireflies can fly outside of the light2d and it looks off

so I’m wondering if it possible to make it so each particle emits some lights. I’ve tried looking through particle Emitter node and some old forums but I couldn’t fine anything

I’m not sure what your vision is overall, so this might not be what you’re looking for, but it might be easier to just constrain the movement of the fireflies to within a certain radius of their origin.

I’m a shader rookie though, so it’s possible someone more knowledgeable will come along and explain that it’s actually easy to get particles to emit light.