Light2D takes effect despite light mask because of shader

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

I have a TextureRect which applies over half of the screen. I have various objects set to ignore the effects of a Light2D using the lightmask. When the texturerect is visible this is ignored and the light2d affects objects which should be excluded because of their lightmask. Both the objects and the texture rect are set to 0, as in, should not be affected by light at all.

The texture rect has a shader material with a simple shader that inverts the colours in its space, and that is the source of the issue.

Any ideas?

:bust_in_silhouette: Reply From: javaid9816

2 days ago — I have various objects set to ignore the effects of a Light2D using the lightmask. When the texturerect is visible this is ignored
if you want to know about law related information then you can visit me website