Hello everyone. Lately I'm trying to develop this game where the HSL of the screen changes depending on the distance the character is from certain objects.
Like light bulbs, if the player is close to them the HSL it set to 100 and the screen get bright and colorful, if the player is far from them the screen gets gradually darker and in black and white.
The problem here is, sometimes the player is really close to one of those light bulbs but the screen gets too dark because he is really far away from another one.
Is there any way I can determine which of the actives light bulbs will have the higher HSL before setting it?
I tried to set only the higher HSL but then after the HSL reaches 100 it never goes down again so I'm kind of lost.
Thank you guys for the assistance o/