I’m hoping someone here can help me, since I’m a 3D Artist with no coding knowledge whatsoever (but willing to learn). I’m trying to bake lighting for a .glb file with the help of sandbox.babylonjs.
I have the following problem: I have a bought 3D model, which is already uv mapped and textured, but with overlapping UVs. Now I want to do some light baking, without having to re UV and retexture the entire model. Because of the overlapping UVs on ‘UV0’, I created an new UV set ‘UV1’, where I want to put my rendered shadowmap.
I’ve imported my .glb file into Sandbox.js and added my shadowmap to the ‘Lightmap’ channel, using UV1. In the Sandbox viewer, everything looks as it should. But after exporting the file by clicking on the ‘Export to GLB’ the shadowmap is missing, only the Albedo texture is visible.
So my question is: Is it possible to export a .glb file with a functioning shadowmap? I would also be very thankful if anyone has any other solutions to my problem.