How can I get Particles2D to ignore CanvasModulate?

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

I have a few particle effects I have tinkered with as part of spell attacks in my game. My game also involves using light occlusion and canvas modulate to create darkness and shadows.
I don’t want the particles darkened by the modulation and I also don’t like how they the light affects their colours. I would rather the particles were independent of lighting completely. Is there a way to do this?

I tried making them the child of a CanvasLayer node but this caused them to disappear completely.

Making it a child of the CanvasLayer on the world node made it show up finally, but the positioning was all messed up. I still need a better way to sort it out.

artsyWraith7 | 2020-05-18 20:33

:bust_in_silhouette: Reply From: njamster

I would rather the particles were independent of lighting completely. Is there a way to do this?

Select your particle-node in the scene-tree and (in the inspector) add a material (CanvasItem > Material > New CanvasItemMaterial) and set “Light mode” to “Unshaded”

Thanks, that’s perfect.

artsyWraith7 | 2020-05-19 10:48

Thank you for the tip, simple and effective, save me a lot of work.

Idleman | 2021-01-30 06:14