2023.3 Bug: Directional Lightmaps Break Surface Shaders

Report: IN-68533

In 2023.3, baked directional lightmaps completely break the default surface shader on Android with the Built-in pipeline.

Steps to reproduce:

  • New project in 2023.3.X, set to Android (Built-in pipeline)
  • Place a plane and some cubes on it to cast shadows
  • Create a brand new surface shader, set a texture, apply it to the plane
  • Bake lighting with Directional Mode set to ‘Directional’
  • Build & run on Android
  • Observe that the “textured” plane is now a flat color or banded colors (as if the UVs stretched to infinity)
  • Rebake lighting with Directional Mode set to Non-Directional
  • Build & run on Android
  • Observe that the textured plane now renders correctly with baked shadows

This worked fine in 2021, not sure which version broke it.

I don’t see a bug report case? Forums is not the place for reporting bugs FYI.

I did report it first, was posting here as well because I don’t actually know which method will result in a faster response…
It is IN-68533. It affects all versions 2023.2 and above as far as I can tell, I haven’t tested any below that.