- Home /
Can you change realtime lights falloff?
I need my lights to have a linear fall-off like the Linear custom preset in this page from the documentation: https://docs.unity3d.com/2018.2/Documentation/Manual/ProgressiveLightmapper-CustomFallOff.html
The problem is that I can't seem to make the example script do anything. Even if I managed to get it to work, I think changing those presets would only affect baked lighting, and I need it to be realtime.
I've also tried changing the attenuation for the light in the CGIncludes Unity folder, messing around with the AutoLight.cginc and UnityCG.cginc files, but none of the changes seemed to do anything, even after I tried using the 'Reimport All' button inside Unity, to try and force the cgincludes to be recompiled. I must make it clear that I couldn't understand almost anything within those files, and there is a huge chance I'm not doing anything right at all.
I would love some help with that, since I've burned down a whole day googling and blindly making changes to files, without getting a pixel to change within my game. Is it even possible to make that change?
Thank you!
Your answer
Follow this Question
Related Questions
Light Falloff Post Process Effect? 0 Answers
change light attenuation calculation 0 Answers
Light Bleeding Through Hard Edges on Shadow Casting Object 1 Answer
How do you Turn off the Light Indicator Graphic(doesn't let me see my Characters)? 1 Answer
All my assets unaffected by light source 2 Answers