How do I make light go through curtains *realistically*

Hello there! I am that one scripter who makes a map for a horror game.
I have a window with curtains and light behind it. I want to know if it is possible to create a realistic shader-effect of seeing light through curtains in Roblox Studio.

I want the curtains act like curtains, not like opaque fabric.
Here’s an example of that effect:

Does anyone have any methods or ideas on how to bring a similar effect to Roblox?
Thanks for reading.

1 Like

Can we see what you have so far?

Sure. Just added some brightness to see how it is.

Did you try adjusting the transparency of the curtains?

This is definitely not what I’d like to.

There are completely no rays or whatever is laying on the material like on this pic (not a roblox)

The effect you want to achieve is most likely not going to be with lighting. You’ll probably want to use a Beam or ParticleEmitter.

I’m not sure, but what if you have 2 SurfaceLights?
1 to shine from each window Pane onto the curtains with a very short Range, just to or slightly past the curtains.
The 2nd to light up the inside of the room with a softer light, tinted by the curtain’s colour.

It may be possible to combine that and the BloomEffect in Lighting to get the effect you are looking for.

I don’t know how and why, but SurfaceLight acts differently than other light sources. For some reason, it lets light go through and it looks… cool?:

I’ve got this result by putting a transparent plane behind the window and adding surface light to it. Playing with sizes, angles, brightness and range, I got the result I wanted.

It can be done better, It is not perfect, but I think I’ll keep it like this for now. Thanks!!

1 Like

SurfaceLights (point and spot as well) also have a short distance in front of them that is ‘unlit’.
You could try moving your Transparent Part back a bit.
Put another transparent Part on the side of the curtains inside the room, facing inwards, to possibly show the light effect coming ‘through’ the semi transparent curtains.

Use sun rays maybe?
Idk tbh because of your sky and theme of the game.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.