How many lightmap can be used in a gltf model?

hi all,

is it possible that the lightmap file in the gltf model can be more than one?

I think glTF only supports two uv sets officially. Let’s ping @bghgary who will know for sure.

Note that lightmaps are not supported by glTF. These threads can help:

1 Like

glTF requires that implementations support at least 2 UV sets. We recently changed our implementation to support 6 (was 2 originally). If a glTF uses more than 2 UV sets, it will not be as portable.

3 Likes

Thanks all,
Now I understand :slight_smile:

If this example can help: https://playground.babylonjs.com/#ADPQFC#9 (here lightmaps are not embeded in the .glb, but availabled next to it)

1 Like