Ayfel / PrefabLightmapping

Script for saving lightmapping data to prefabs. Used through the Assets tab in Unity. Place your prefbas in the scene with this script at the root. Set up your lighting and in the editor go to Assets->Bake Prefab Lightmaps. After is processed you can now spawn your prefabs in different scenes and they will use the lightmapping from the original scene.
618 stars 88 forks source link

Baked lighting doesn't work in the build version if Screen Space Shadows is enabled #59

Open joevenzon opened 1 year ago

joevenzon commented 1 year ago

The baked lightmap data works fine in Play mode in the unity editor, but is applied in screenspace in a broken way in the the build. I was able to track this down to the Screen Space Shadows setting. Which is fine, I can just turn off screen space shadows. I just wanted to create this issue so other people don't spend hours tearing their hair out.

image

image