"Whitelist" light shadows to only select parts

I have two lights, red and green, as well as two parts also red and green.


Would it be possible to have the red light be able to shine through the green part but not the red one and vice versa? Like a selective CastShadow effect?

2 Likes

Forgot to specify, is it possible for the shadow casting to happen at the same time?

1 Like

I dont think its possible. I would love if roblox let us have more intricate and useful lights though, on some other engines setting the light to -1 reduces the light nearby too.

1 Like

You can kind of make the -1 effect by setting the lights color to -255,-255,-255 but it has a very angular edge for point lights, as well as the edge of all other lights.


You can use a spot light or a surface light as a single surface point light.

And if you just use one or two color channels, you can make (Somewhat) subtractive color mixing! Although you can’t change the values of the colors

This is the main reason I wanted to find if there was a way to “Whitelist” light shadows, as I wanted to make a cool effect with this.

Why would you ever want the sun is leaking?