I have a strange issue trying to get a baked spotlight light to show on a mesh: it will not at all be displayed on that mesh on Game or Scene-Shaded whilst it displays fine in an adjacent mesh. At the same time if I check it in the “Baked Lightmap” Scene view, it looks fine on both meshes.
This happens both with Unity 2017 and 2018, in the Built-In/Standard Rendering Pipeline.
Here are two pictures to illustrate it:
This is the view as Scene-shaded. There inside hangar is one mesh, the outside of the space station is a different mesh.
The baked light is light-blue and you can see it on the right-hand wall and floor of the hangar but not at all outside.
This is the Scene-Baked Lightmap view. Here you can see that the light has been correctly baked in the lightmap for both meshes.
I’ve been looking everywhere for differences but couldn’t fine any. Both meshes share 2 materials, both materials using the Standard shader in a Metalic setup and in one mesh both of those Materials display the baked light correctly, whilst in the other neither will display it.
Here’s the config for both meshes:
The left one is for the inside area mesh, the other for the outside one.
You can see that they both share 2 out of 3 materials, and changing the StationCenterBeaconsMat.Game material on the outside to just use the Standard shader does not solve the problem.
Here’s the Lighting config:
The Lightmap UVs are generated by Unity and seem absolutely fine in the Lighting settings (and for both meshes only the UV0 comes with the model in the FBX, so UV1 is for certain created by Unity).
I’ve even went and examined in the Frame Debugger to see what goes down to to each shader in the render passes and I can’t really spot any major difference in terms of what gets passed to each shader (same textures, same shader flags).
I have, of course, done the whole Clear Baked Data and manual Generate Lighting (by the way, it works fine when realtime lighting is used) but to no avail.
I’ve pretty much exhausted all venues of investigation I can think of, so I need some help here…