Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Strange blue tint on some materials after upgrade to URP

Discussion in 'Universal Render Pipeline' started by llentinantl, Jul 21, 2023.

  1. llentinantl

    llentinantl

    Joined:
    Jun 7, 2017
    Posts:
    17
    I've decided to upgrade my project that used built-in renderer, to URP. Doing this, I've also performed upgrade of all my materials to URP standards. Initially it worked fine, and I haven't noticed any issues (at least after doing some configuration with camera and lighting).

    However, today, some of my materials suddenly became blue. Not completely, but more like additive blue to their default color.
    prior to shader.png

    You can see that this applies to materials themselves, not only to how they look on camera, so the issue is definitely in materials, and not in how they are rendered. You can also see properties of such material - it uses regular color texture, and does not have additional diffuse color.

    This didn't happened to all materials (mostly ones I'm using with Realtime CSG surfaces, but the issue is not exclusive to those). I'm also able to create materials with seemingly similar setup, and they look normal.
    So, any ideas? What's going on? Can I fix this without creating each affected material anew?
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,362
    Did you clear the baked lighting data?
    Does it fix if you change the color next to the color?
     
  3. llentinantl

    llentinantl

    Joined:
    Jun 7, 2017
    Posts:
    17
    I don't have baked light in my scenes for now. Also, would it affect materials themselves?
    No, the blue tint seems to be additive. If I try turning material completely black, it turns blue instead.
    image.PNG
     
  4. llentinantl

    llentinantl

    Joined:
    Jun 7, 2017
    Posts:
    17
    I've reverted my changes of URP migration, and repeated it, this time doing material upgrade in slightly different way. I've noticed that this bug happened mostly for materials that I've upgraded in a bulk, so this time I've upgraded most materials one by one; I've still upgraded some materials in a bulk just to test the theory. If the issue will not reproduce, this means this is most likely singular occurrence.