PointLight2D no worky on pure black tiles

Godot Version

Godot 4.2

Question

Hello.

I have a tilemap with pure black tiles.
Tileset
My problem is that I can’t for the life of me figure out how to make it so that PointLight2D would still show on those pure black tiles.

The same PointLight does show up on other colours as it should.

Some more info:

Tree:
image

TileMap:

PointLight:

Display (The light is selected):
image

Thank you in advance.

I figured out how to make Light work on pure black but now my light is a square :face_with_diagonal_mouth:

Anyway, here is the light on pure black shader script.

shader_type canvas_item;

void light() {
	vec4 input_color = texture(TEXTURE, UV); //This was me trying to make it a circle.
	LIGHT = vec4(1.0, 1.0, 1.0, input_color.a);
}

Image of the light working.
image

1 Like