godotengine / godot-demo-projects

Demonstration and Template Projects
https://godotengine.org
MIT License
5.44k stars 1.52k forks source link

light2d_as_mask: illuminate benath mask without unmasking #1060

Open urzbs opened 1 month ago

urzbs commented 1 month ago

Which demo project is affected: light2d_as_mask

Description: Allow Masking and other PointLight2D sources to illuminate the Sprite2D / Texture from behind (without removing the mask).

A Layer option for the CanvasItemMaterial, so you can decide which lightsource causes it to trigger.

cull_example

Calinou commented 1 month ago

Is this a feature proposal? If the engine does not provide this feature, then the demo can't implement this (or perhaps shouldn't, if it's too complex).

Feature proposals should be made on the https://github.com/godotengine/godot-proposals repository.

urzbs commented 1 month ago

Hey, I was not sure if godot has already capabilies like this.

So I thought it would be nice to ask first here since this demo is a good starting point to elaborate.

But you are right, the way I have written my issue seems more like a feature proposal.

I am sorry, i can re-create the issue in the proposals repo