Deferred Rendering not rendering any point lights.
Up until a few Unity versions ago I've had no problems with builds, but lately I've had tons of issues from stable releases or beta releases. I can cope with many issues, but this one is pretty big.
For some reason, the moment I run a build all my point lights stop working. I've tried everything I can think of to fix the issue and I've asked other developers for their ideas and so far nothing has worked, so I hope I can find something here.
Some things I've tried:
Using a new light with nothing changed in the editor.
Changing pixel light count.
Changing player settings and quality settings.
Writing a script to edit the light property at run-time and spawning one in as a prefab.
setting the light to important.
disabling shadows on the light
disabling light bounces
So far the only thing that seems to work is to change to Forward rendering, but I cannot do that as the entire game has been built around deferred rendering. I also have far too many lights and far too large levels to consider baking them in. This happens in all my levels and my lights work perfectly fine in editor, but the moment I build every point light seems to just disappear. As I've said, they've been working fine up until this point and I have no idea what is wrong.
I've attached images of what the lights look like in editor and in build.
Just tried DX9, DX11 and DX12. No change.
Tried 4 different versions of unity, from the latest beta and the beta before that, to the last 2 stable releases. No change.
Also tried 4 different PCs, a laptop with a 960m, a desktop with 970, a desktop with a r9 290 and a desktop with 1070. No change.
I only have a week before a games festival where Im to exhibit and I cant find a fix for the deferred rendering build.
Your answer
Follow this Question
Related Questions
struggling with point light 0 Answers
Unable to build whatsoever,Unable to build at all 1 Answer
Deferred Rendering, Command Buffers, and Reflection Probes? 0 Answers
Point/spot lights dont bake 0 Answers
Weird shadows when camera is in the right position 0 Answers