Fixing Shadows Within Small Buildings

Hello! I’ve recently started a project that requires people to go inside buildings. (Duh.) However I’ve ran into a problem. When the walls which make up the building are too thin then the shadows don’t work too well. I don’t really know how to explain it, so here’s an image:

Is there a way to remove the light that is somehow seeping into the room without thickening the walls or turning off global shadows? (Or cast shadow on the parts that make up the walls?)

2 Likes

Lighting.Brightness 0 will completely eliminate this as the sun will no longer emit light, this may not be feasible but if you can somehow track if a player is inside a building and toggle Brightness you’ll be fine for now. Other than that, your Ambient is currently set to (0, 0, 0) so raising your Ambient to a high enough value is really the only option.

I have a place with 1 stud walls and Ambient (120, 120, 120) seems to eliminate this while also being a somewhat realistic value for the ambient outside, see what you can do.

Good luck.

3 Likes

I think he wants the whole room to be dark, not to be brightened.

If that’s the case, lower your outdoorambience to 0,0,0.

1 Like

Unless you want to mess with lighting, try to add a angled part on both of their connections.

That will probably break your architecture feeling but is the best you can do.

2 Likes

Lower your outdoor ambient to a much darker tone. I usually have it at [0,0,0] but see how you like it.