How do you make colored/tinted shadows?

I want to make stained glass windows and I want the shadow to produce a color so it can look cool, but I’m not sure how. I’m not much of a scriptor either so I don’t really know any other solutions.
I don’t want to use Surface Light either.

In the image, the glass is yellow, but the shadow is the same gray.

image

If anybody has a solution let me know, I am sure its possible.

Why not use a spotlight, pointlight, or surfacelight?
If you’re really against using lights (why???) then you can simply make your actual shadows by changing the ColorShift_Top/Bottom property to yellow - I forget which one does shadows
But all your shadows will be yellow.


image
image

Now I couldve made these better but I dont see whats wrong with just using lights.

It just seemed like too much work for me, but I’ll try it out anyways lol. But yeah I’m not gonna change the shadows of everything

As @Aerophagia said, lights can be your friend. For stained glass I’d suggest using SurfaceLights with the Angle set to something low like 10, or even 5 if the light needs to travel a distance.
Unfortunately you can’t have them the exact shape of each segment of stained glass because they only end up projecting a rectangular shape. You could do a Spotlight if you require a round shape I guess, but it would taper out from the center of the Part.

If your sunlight is stationary, or you’re using a Light or Spotlight to shine through the ‘stained glass’ onto a flat surface you should be able to make a decal that would be the shape of the stained glass image and put it on a Transparent Part with the Decal partly Transparent as well. This way you could make the decal the exact size, colour, with ‘unlit’ areas where the metal between the edges of the glass would be ‘shadowed’.

2 Likes

Thanks for the feedback, I don’t think I can really use the light method because my window does have shapes other than squares, but I feel like I can use that one light particle (??) thing that Roblox studio provides. I’m gonna have to check when I get back on Roblox Studio.

Maybe if you add a (blurred) mirrored image of your finished stained glass, the shape of the light would be less obvious.

People whose computers are immediately bricked or experience extreme fps hitching when they join a place that makes large usage of this technique: T_T
~
In all seriousness, if you want to try surface lights, keep performance in mind and consider all other factors of detail in your place.

Personally, I would use point lights or spot lights, probably with shadows disabled, to produce a vague implication of coloured shadows.

2 Likes

A way to tint shadows is change the ambient colour in lighting but the only problem with this is that it affects all shadows.

I was thinking about this one!