Realtime and baked light completely different in Unity editor and WebGL build

Hey,

I encountered an issue where the lighting is completely different in Unity’s editor and WebGL build. Windows build shows the same result as the Unity editor (so this is correct).

Unity editor and windows:
Click here to see image

WebGL build:
Click here to see image

I also noticed that right before the light bake finishes in the editor, the game screen promptly (half a second) looks like the WebGL build, but then corrects itself. This also happens when opening the .exe windows build. As long as the game window stays unfocused, the lighting looks off. Focusing the window (clicking on it) fixes the issue.
This can be seen in the following video:
Click here to see the video

Using Unity 2017.2.0f3. The same problem occurs with Enlighten and Progressive. Does not matter if lights are realtime or baked. All lights are set to Important. No light or reflection probes are used. All lights used are point lights (no directional).

Picture of light settings:
Click here to see image

EDIT 1: The bug exists when building on android as well. Will test iOS soon.

Any helps is much appreciated!

Thank you!

Old thread, but did you ever figure out what was happening?

No, sorry.

Those platforms don’t support Realtime Global Illumination. You have to turn it off.

Most of those platforms aren’t powerful enough to run it, or lack some feature to support it. WebGL is powerful, but often lacks a single crucial feature in the API.

The only way is to bake the indirect, and have realtime/mixed lights on top.