How do I prevent my directional light from illuminating avatars through the walls?
I'm making a world for VRChat, and using Bakery for my lighting. The screenshot above is taken from within VRChat, but within the editor, dropping an avatar into the scene results in the same effect where the walls do not cast shadows on the avatar.
I have tried both realtime and mixed mode for the directional light, but it doesn't seem to make a difference. Culling mask is set to everyhting.
The baked lighting in the scene is handled by the Bakery light script placed on the directional light, and on that shadowmask is enabled, but bake to indirect is not.
I built this in Probuilder. The wall meshes are all automatically set to be static and "two sided" under cast shadows.
I also tried enabling "occlusion probes" in the Bakery render options and re-rendering the light probes, but this didn't help either.
And I tried setting my directional realtime light to mixed mode, but that too did nothing.