Light passing through a wall

Godot Version

4.7.2

Question

I had look in topics made before as I guess this is quite common, but haven’t found solution to it yet ( Prevent light passing through walls )

So what the issue?

The Spotlight passing through a mesh.

What I have tried?

Added CSG geometry inside

Unwrapped UV2 for LightMapGI

Baked LightMapGI ( unsure on this step if I don’t need to add some probes inside or outside of wall)

What I am trying to achieve?

Have light sources not passing through a wall or floor.

Why do I need this, macro- look?

I’m trying to make dark atmosphere levels and lights should be only visible when you are near them directly not through a objects or wall.

Couple screenshots which include scene_tree as well.

You need to enable shadow casting for the light.