# How many lightmap can be used in a gltf model?

**URL:** <https://forum.babylonjs.com/t/how-many-lightmap-can-be-used-in-a-gltf-model/20242>\
**Category:** Questions\
**Created:** [April 23, 2021, 2:05am UTC](https://forum.babylonjs.com/t/how-many-lightmap-can-be-used-in-a-gltf-model/20242 "2021-04-23T02:05:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muhamad\_Rifky](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/muhamad_rifky/32/7838_2.png) [@Muhamad\_Rifky](https://forum.babylonjs.com/u/Muhamad_Rifky)\
**Post date:** [April 23, 2021, 2:05am UTC](https://forum.babylonjs.com/t/how-many-lightmap-can-be-used-in-a-gltf-model/20242/1 "2021-04-23T02:05:06Z")

</div>

hi all,

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

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [April 23, 2021, 9:18am UTC](https://forum.babylonjs.com/t/how-many-lightmap-can-be-used-in-a-gltf-model/20242/2 "2021-04-23T09:18:58Z")

</div>

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:

- [How many types of Lightmaps are there to use & how to link them in Maya so that those LightMaps should come Properly in .Babylon or .gltf? - #3 by PatrickRyan](https://forum.babylonjs.com/t/how-many-types-of-lightmaps-are-there-to-use-how-to-link-them-in-maya-so-that-those-lightmaps-should-come-properly-in-babylon-or-gltf/12323/3)
- [GLB Exports : Tileable Textures & Lightmaps/ Baked Lights - #3 by PatrickRyan](https://forum.babylonjs.com/t/glb-exports-tileable-textures-lightmaps-baked-lights/17701/3)

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [April 23, 2021, 3:58pm UTC](https://forum.babylonjs.com/t/how-many-lightmap-can-be-used-in-a-gltf-model/20242/3 "2021-04-23T15:58:00Z")

</div>

> [@Evgeni\_Popov](#):
>
> I think glTF only supports two uv sets officially.

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.

---

<div class="post-metadata">

**Author:** ![Muhamad\_Rifky](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/muhamad_rifky/32/7838_2.png) [@Muhamad\_Rifky](https://forum.babylonjs.com/u/Muhamad_Rifky)\
**Post date:** [April 26, 2021, 3:16am UTC](https://forum.babylonjs.com/t/how-many-lightmap-can-be-used-in-a-gltf-model/20242/4 "2021-04-26T03:16:50Z")

</div>

Thanks all,  
Now I understand 🙂

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [April 28, 2021, 12:53pm UTC](https://forum.babylonjs.com/t/how-many-lightmap-can-be-used-in-a-gltf-model/20242/6 "2021-04-28T12:53:42Z")

</div>

If this example can help: [https://playground.babylonjs.com/#ADPQFC#9](https://playground.babylonjs.com/#ADPQFC#9) (here lightmaps are not embeded in the .glb, but [availabled next to it](https://github.com/BabylonJS/MeshesLibrary/tree/master/CornellBox))
