Godot version:
3.2.4 beta-1
OS/device including version:
Zorin OS 15
Issue description:
Lights flicker wen moving the camera (Only if there is a BakedLightmap node).
"Bake mode all" lights illuminate baked objects, but if I hide it and show it again then it works ok, but it screws other lights.

Possible related: https://github.com/godotengine/godot/pull/41629
Steps to reproduce:
Make a similar setup as the gif
Minimal reproduction project:
LightMaps.zip
You forgot to add an MRP
I'm unable to reproduce this bug in a minimal project.
Maybe this old bug is related? https://github.com/godotengine/godot/issues/33110
Reprocuded the effect (in GLES 3, not GLES 2):
Light.zip
Reason: Too many lights affecting the mesh --> Renderer Limit --> Flickering due to Choice of lights rendered affected by what the camera sees (I guess? - to the flickering part that is)
Solutions: Reduce number of lights affecting the mesh or wait for Godot 4 and use Vulkan
Edit: Oh nvm, I'm using GLES 3 and not GLES 2, which doesn't have that issue..
Sorry but that's not the same setup as wen the bug happens.
I've managed to reproduce the bug on a minimal project:
LightMaps.zip
Updated first post, added the reproduction project.
I don't think I was successful with reproducing it on your MRP on a Quadro K2000 (driver 452.06).. Gif of the MRP would help in searching, as it's possible I'm looking at the wrong thing and thus not noticing the bug.. Only thing I'm noticing is that I can turn off all lights and still have a lit setup even with the baked lighting node hidden.. which only ends when I kill it.
Edit: nvm I think I reproduced it now.. I'm at the OmniLight toggling it's visibility, and OmniLight6 Changes brightness depending on the Visibility of OmniLight and vice-versa.. based on the Gif.. That is the issue?
Edit 2: Tested it on 3.2.3 Stable now, from 3.2.4 beta 1, seems like a regression, as I've been unable to do it in 3.2.3 Stable (now that I know what I'm looking for), However still haven't seen flickering when moving the camera on any Version I tested.
Edit 3: Found Flickering issue now too. when Baked Lightmap is hidden, on camera coords Translation 0,7,23, rotation -30,0,0
when draging translation z between 22 and 23, OmniLight 7 Flickers. Note: Camera Node isn't needed to reproduce, it's just the rough position where I've encountered it, and Camera Node allows for easier reproduction due to less variables changing.
Edit 4: Flickering Only in 3.2.4 Beta 1 and none of the issues reproducable in 3.2.3 Stable. This reeks of a Regression to me!
Please Test on 3.2.3 Stable on your end and report if 3.2.3 Stable has the issue for you... just in case.
Yeah in stable works OK (of course, without the new functionality of "baked mode all" light discrimination, which I suspect is the culprit)
Cc: @JFonS
Definitely sounds like a regression from the baked lights PR. I will take a look at it :)
Still happens on 3.2.4 beta-2
Most helpful comment
Definitely sounds like a regression from the baked lights PR. I will take a look at it :)