- Home /
Area lights turns off depending on camera angle (HDRP)
I'm using the last version of Unity with HDR Pipeline and encounter a strange issue. Depending on the angle and proximity of my camera to an area lights, these will switch off for no reason (screens below).
On the below example, both of the area lights are set to "Mixed".
I tried with a spot light and did not encounter this issue.
What could cause the problem? I remember that I had this issue before on normal Unity version, and solved it by setting the light as "important" - unfortunately this option does not seem to be present in HDRP.
Thanks!
Answer by mrcapitan22 · Mar 27, 2020 at 06:56 PM
Same problem, do you resolve?
What a coincidence I just ran into this myself, see answer below
Answer by plindsey · Mar 28, 2020 at 10:12 AM
Hello I just discovered why this is. Area lights don't use a bounding box to cull instead use a sphere based on the Range parameter. When you are not facing the centre of the light and are out of it's effective radius it is automatically culled.
Answer by GetMeSomeGames · Dec 16, 2020 at 06:08 PM
As answer to the question and to @mrcapitan22 (if this is still useful) HDRP only allows for a couple of lights to hit the same object. All other lights that should shine on the object simply don't. The list of lights that are allowed to hit the object change when you change your camera view. Could it be that you have too many lights hitting the same object? If so, this amount can be altered (although the limit was something like 8 I think), or you'd have to limit the amount of lights or split your object into separate pieces.
Your answer
Follow this Question
Related Questions
HDR in Inspector doesnt work at runtime 0 Answers
Hdr environment light passes through back of walls . 0 Answers
No skybox slot in lighting menu and staging in the scene doesn't work in HDRP Unity 2018.3 0 Answers
Can't Make HDRP Skybox 0 Answers
Unity 2018.3.8f1 HDRP : Area Light Shadows feature not showing for Area and Tube Lights 1 Answer