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:
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’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!!
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.