As shown in the project: PlayCanvas | HTML5 Game Engine
Lightmap bake will lose the shadow data when bake again. Is it a bug or some engine updates require me to do something else? All things are fine a while ago, and I notice this change yesterday.
Looks like a bug. cc @mvaligursky
yep definitely a bug
1 Like
This is fixed and will be deployed with the next engine release, thanks for the report @jack_ma
1 Like
Hey, here’s another bug related to lightmap. As WebGL conext context lost ramdomly on Apple device. Even if we lower VRAM around 220MB. And after the lost, all baked scene turns black. It takes us a long time to find why this happens. Lightmap will get lost after WebGL context restore. However, when bake it again, the shadow is gone
Project is here: Scene LightTest2
https://playcanvas.com/editor/scene/1970890
- Press ‘G’ to run a graphicsDevice.debugLoseContext.
- Lightmap is missing after restore.
- Bake it again in ‘devicerestored’ callback as temporary workaround