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

Freeform lights broken in 2021.3.6?

Discussion in '2D' started by nicmarxp, Jul 19, 2022.

  1. nicmarxp

    nicmarxp

    Joined:
    Dec 3, 2017
    Posts:
    404
    We're trying to upgrade from 2020.3.14 to 2021.3.6 but the free form lights seems broken, or is being used in a different way that i don't understand.

    We want to make a halo of light, that should enlighten a sprite in the background. This is what it looks like in 2020.3.14:


    And this is in Unity 2021.3.6:


    The light shape is like a donut with a slice in part end to have it join.
    The light renders totally weird, with lines cross, and you can't see the texture of the background sprite.

    It seems to happen when the shape is convex (?) or has points overlapping in weird ways, but also when trying to make a C shape.

    Here's a clip of me fiddling with it:

     
  2. kennyy_

    kennyy_

    Unity Technologies

    Joined:
    Apr 7, 2021
    Posts:
    94
    Hi @nicmarxp, can you try changing your Freeform light to a Sprite light and setting the Sprite property to "None". A bug was introduced that caused sprites to show up in other types of lights.

    upload_2022-7-25_11-28-5.png

    If this isn't the same bug, you can report it as a new issue and share your project with us.
     
  3. nicmarxp

    nicmarxp

    Joined:
    Dec 3, 2017
    Posts:
    404
    Thanks! I’ll check that out about the texture. I found that the issue with the light freaking out was when the shape of the freeform light was touching itself including the falloff. That didn’t happen in 2020.

    So we ended up doing two half donuts instead and it works, it’s just a little tricky to get it to join smoothly but it works.

    Thanks again for getting back!