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. Let us know your feedback about the Global Illumination changes in the 2023.2 beta.
    Dismiss Notice
  3. Dismiss Notice

Feedback Falloff offset has been removed from Freeform lights, effect not possible anymore

Discussion in '2021.2 Beta' started by AlexVillalba, Mar 26, 2021.

  1. AlexVillalba

    AlexVillalba

    Joined:
    Feb 7, 2017
    Posts:
    334
    Since Freeform lights have changed and the Falloff Offset property has disappeared, I don't know how to achieve this effect to replace my lights (falloff intensity low at the bottom of the light, high at the top of the light):


    I cannot use point lights with inner/outer angles because it is not a light bulb, it is like a fluorescent tube with rectangular shape.

    Would it be possible to put the property there again? Can anybody give a short explanation about why it was removed? I don't see alternative ways to achieve the same.

    I already warned about this before the decision was made: https://forum.unity.com/threads/2d-lights-streamline-tell-us-your-thoughts.975747/#post-6664804

    I know I'm not the center of the world and Unity is not meant to satisfy my individual needs, but... I consider this a very small change (is it expensive to revert it?) that has big consequences, and I'm not alone on this as far as I have read in the forum.

    Thank you in advance
     
    NotaNaN likes this.
  2. AlexVillalba

    AlexVillalba

    Joined:
    Feb 7, 2017
    Posts:
    334
  3. tomosbach

    tomosbach

    Joined:
    Feb 25, 2021
    Posts:
    7
    I second this! Was a very useful feature...
     
  4. Nyir

    Nyir

    Joined:
    Mar 8, 2023
    Posts:
    2
    Can you tell me how to add it back?
     
  5. AlexVillalba

    AlexVillalba

    Joined:
    Feb 7, 2017
    Posts:
    334
    Hi Nyir, I shared the code in the second message. You need to download the URP code repository and apply those changes there.
     
  6. Nyir

    Nyir

    Joined:
    Mar 8, 2023
    Posts:
    2
    where can I download it from? and where do I apply the changes in the script?
     
  7. AlexVillalba

    AlexVillalba

    Joined:
    Feb 7, 2017
    Posts:
    334
    You need to make a fork of the URP repository in Github (https://github.com/Unity-Technologies/Graphics). Then you download it wherever in your PC as with any other working copy and import it in your Unity project as a package. Then you can go to every file that appears in the commit I shared above and apply the changes to them.