Lightmaps are set to repeat with no border padding, causing bleeding

I’m getting some artifacts in my lightmaps owing to the fact that there is no padding along the border of the texture and the wrap mode is automatically set to Repeat. I can fix this by changing the lightmap wrap mode to Clamp, but I have to do that manually every time I regenerate the lighting because Unity resets it to Repeat. I’m posting this as a bug because it seems that given the lack of padding at the border, I’m assuming the wrap mode should be Clamp by default.

If this isn’t a bug and is intended behavior, what’s my best option for automatically setting the wrap mode to clamp or increasing border padding? Thanks in advance!

Lightmaps should be set to clamp by default, and in my testing they still are. You might have a texture importer preset affecting the lightmaps, check Edit > Project Settings > Preset Manager. If this isn’t the case, please file a bug report with your project attached.

1 Like

Oh, duh! I didn’t realize they’d be affected by that, but that makes sense. Thanks for the help!