Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Bug 2023.3 Bug: Directional Lightmaps Break Surface Shaders

Discussion in 'Unity 6 Beta' started by CW3MH6, Feb 13, 2024.

  1. CW3MH6

    CW3MH6

    Joined:
    Jul 4, 2013
    Posts:
    14
    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:
    1. New project in 2023.3.X, set to Android (Built-in pipeline)
    2. Place a plane and some cubes on it to cast shadows
    3. Create a brand new surface shader, set a texture, apply it to the plane
    4. Bake lighting with Directional Mode set to 'Directional'
    5. Build & run on Android
    6. Observe that the "textured" plane is now a flat color or banded colors (as if the UVs stretched to infinity)
    7. Rebake lighting with Directional Mode set to Non-Directional
    8. Build & run on Android
    9. Observe that the textured plane now renders correctly with baked shadows
    This worked fine in 2021, not sure which version broke it.
     
    Last edited: Feb 14, 2024
  2. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    455
    I don't see a bug report case? Forums is not the place for reporting bugs FYI. upload_2024-2-13_16-0-8.png
     
  3. CW3MH6

    CW3MH6

    Joined:
    Jul 4, 2013
    Posts:
    14
    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.