Baked light "leaks" through between objects and creates ugly borders on textures

Hello everyone!
I made a couple of modular 3d models to assemble a corridor in unity. To prevent spaces or overlapping of meshes I held V to snap models together.

But as I started to bake lighting something went wrong. I got these weird lines in-between when looking at a distance:

tfdxıyrd

But looks normal up-close.

I tried to editing the UV map but it didn’t make a difference. So I suspected that the problems lie in light itself, since there were unaffected edges in shadows. So I looked in between the objects and here the problem was. The in-between parts that should be snapped together letting no light in between were lit.

So I think that caused these weird lines.
(I also noticed how weirdly point light ignores walls and reflects where it shouldn’t.)

I tried to find solutions for it online but couldn’t find an answer so far. So I’d be glad get your opinion on it. Thank you!

I can’t attach more files to this post for some reason so I’ll try to attach them in replies to your questions.

Add more UV padding.

UV/edge/texture padding: adding spacing between neighboring uv islands

This is what happens when there is too little space between uv islands:

mip0 is texture seen up close.
mip4 is texture seen from afar or angled.

Post this scene as a public github project so issue can be reproduced and we will get to the bottom of this.

Ok, case solved. This is light leaking through the invalid geometry.

Even a dynamic light shines through it:

GIF 02.09.2023 22-35-25

It is not because it is modelled in ProBuilder, but it is because some geometry is considered invalid regardless of the software it was made in.

This is one of these cases:
Screenshot 2023-09-02 224543

Potential fixes:

A common technique is to wrap your mesh in an unlit block box that you’ll remove / disable after baking. Hacky solution, but very reliable in producing good results.

@andrew-lukasik yep, unfortunately even with mipmaps turned off I get these results. Other parameters:
Lightmap res 40
Padding 10

Mipmaps off
Scale in Lightmap 1
Max Lightmap Size 1024
Compression Normal Quality

@andrew-lukasik
I doubled a wall object and snapped them together to see how light affects plains and then rotated them 180 degrees and put them side by side to see the inner shadow side that should not be lit at all. So that’s what I got