# How can lightmaps baked in Unity be used in Three.js? Is there currently a workflow for exporting lightmaps from Unity for use in Three.js?

**URL:** <https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706>\
**Category:** Questions\
**Tags:** lightmap\
**Created:** [July 8, 2026, 10:03am UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706 "2026-07-08T10:03:14Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![dadajiahui](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/dadajiahui/32/70285_2.png) [@dadajiahui](https://discourse.threejs.org/u/dadajiahui)\
**Post date:** [July 8, 2026, 10:03am UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/1 "2026-07-08T10:03:15Z")

</div>

![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/7/5/750b2fe64dfba43a2ffa220b7597a3c3ce0e4857.png)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/5/2/522eb98158e18c41df4bc101cbc205a651e98c5a.jpeg)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/0/e/0efb7eb461cc7f1bdc6f52dad50c3f5ce6b0329f.jpeg)

I am currently using the UniGLTF-1.27.unitypackage plugin in Unity to export models to GLB format and then loading them using Three.js. However, I have encountered a major issue with loading the baked lightmaps—a problem that has been plaguing me for over two weeks. The lightmap rendering consistently looks incorrect. I created a mapping table in Unity to track the relationship between models and lightmaps, including the `scaleOffset` values; yet, in the Three.js scene, the positioning of certain lightmaps remains wrong—as shown in the image I provided—while others display correctly. I am at a loss as to where the problem lies. Could an expert please help me resolve this issue?

---

<div class="post-metadata">

**Author:** ![dadajiahui](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/dadajiahui/32/70285_2.png) [@dadajiahui](https://discourse.threejs.org/u/dadajiahui)\
**Post date:** [July 8, 2026, 10:06am UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/2 "2026-07-08T10:06:25Z")

</div>

```javascript

```

My lighting data coordinates match Unity’s, but the resulting lighting effect is incorrect.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/c/4/c42fb47271d408fa44ad41d2cb806ea9b2eca217.png)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/d/2/d2a75b01900144ddd64c211069e3ec9d40aa111b.png)

---

<div class="post-metadata">

**Author:** ![Lawrence3DPK](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/lawrence3dpk/32/29184_2.png) [@Lawrence3DPK](https://discourse.threejs.org/u/Lawrence3DPK)\
**Post date:** [July 8, 2026, 10:30am UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/3 "2026-07-08T10:30:43Z")

</div>

this sounds like it could possibly be a texture flipY issue, after loading the model can you try toggling lightMap.texture.flipY = false / true and see if that helps

---

<div class="post-metadata">

**Author:** ![dadajiahui](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/dadajiahui/32/70285_2.png) [@dadajiahui](https://discourse.threejs.org/u/dadajiahui)\
**Post date:** [July 9, 2026, 1:50am UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/4 "2026-07-09T01:50:22Z")

</div>

Thank you for your reply, but I have already tried that method and it isn’t working.

---

<div class="post-metadata">

**Author:** ![Lawrence3DPK](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/lawrence3dpk/32/29184_2.png) [@Lawrence3DPK](https://discourse.threejs.org/u/Lawrence3DPK)\
**Post date:** [July 9, 2026, 10:09am UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/5 "2026-07-09T10:09:45Z")

</div>

I’m not familiar with UniGLTF, is it generating uv coordinates for every mesh the light map is using? can you provide a simplified model such as a few cubes with baked lightmaps as a GLB? something worth a try could be opening your model in blender to verify everything is right and re-export from there, also try viewing your current model in [https://gltf-viewer.donmccurdy.com](https://gltf-viewer.donmccurdy.com) to assess whether it looks correct, if it does you have a code issue, if not then it’ll likely be a model issue…

---

<div class="post-metadata">

**Author:** ![dadajiahui](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/dadajiahui/32/70285_2.png) [@dadajiahui](https://discourse.threejs.org/u/dadajiahui)\
**Post date:** [July 9, 2026, 10:27am UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/6 "2026-07-09T10:27:54Z")

</div>

Thanks for the reply. UniGLTF is essentially just a tool for exporting models to the GLB format within Unity. Do you happen to know of any good tools for exporting models to GLB from Unity, or could you share a workflow for moving from Unity to Three.js? Your previous suggestion sounded like a great approach, but I’d like to ask about the specific workflow of exporting a model—along with its lightmaps—to GLB from Blender, and then loading that GLB model in Three.js to display the lightmaps. Are there any tutorials covering this process? My main question regarding this workflow is how to ensure the model correctly recognizes and displays the lightmaps. I’m currently using AI to handle the loading of the model and lightmaps in Three.js, so I’m relying on it to automate the lightmap loading as well. That’s why I’m really keen to find a tutorial for this specific workflow. I would be incredibly grateful for any help you could provide.

---

<div class="post-metadata">

**Author:** ![Lawrence3DPK](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/lawrence3dpk/32/29184_2.png) [@Lawrence3DPK](https://discourse.threejs.org/u/Lawrence3DPK)\
**Post date:** [July 9, 2026, 12:34pm UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/7 "2026-07-09T12:34:16Z")

</div>

does your model look correct in the viewer link provided above? importing a GLB to blender is straight forward, you just use file-\>import-\>gltf (if gltf option is not available you’ll need to install the gltf extension), check if the model looks all correct by switching to material or render view, if it looks fine then exporting is just as simple (ensure your materials are principled bsdf) and use file-\>export-\>gltf, select GLB option if you want a binary output (typically smaller in file size) you also have the option of draco compression, you may need to store the light map textures in the ambient occlusion channel and switch them from the ambient occlusion chanel to the light map channel in three.js, heres a basic tutorial on exporting from blender to gltf… [https://youtu.be/oQUPYvX97cU?si=TufZGJfsTUv-T2xu](https://youtu.be/oQUPYvX97cU?si=TufZGJfsTUv-T2xu)

---

<div class="post-metadata">

**Author:** ![dadajiahui](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/dadajiahui/32/70285_2.png) [@dadajiahui](https://discourse.threejs.org/u/dadajiahui)\
**Post date:** [July 9, 2026, 12:39pm UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/8 "2026-07-09T12:39:49Z")

</div>

Yes, my model displays correctly on the website mentioned above. If I export the GLB and lightmaps from Blender, is it possible to use a JSON-based mapping table (similar to a lightmap map) to let Three.js automatically recognize and apply the lightmaps? That way, I could hand the task over to an AI to automatically match the lightmaps.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/e/b/eb827f9b4c8ee0be843a881ae6c18fc69008343f.jpeg)

---

<div class="post-metadata">

**Author:** ![manthrax](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/manthrax/32/2596_2.png) [@manthrax](https://discourse.threejs.org/u/manthrax)\
**Post date:** [July 9, 2026, 10:56pm UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/9 "2026-07-09T22:56:23Z")

</div>

Do the lightmaps show up correct in Blender? If you can get it working right in blender, it should be easier to get it back into threejs.

Once you load it in blender, you can open its UV inspector and see how the loaded rectangles lie on the lightmap and figure out if its an orientation/scale issue or what.

---

<div class="post-metadata">

**Author:** ![manthrax](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/manthrax/32/2596_2.png) [@manthrax](https://discourse.threejs.org/u/manthrax)\
**Post date:** [July 9, 2026, 11:08pm UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/10 "2026-07-09T23:08:29Z")

</div>

![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/1/0/10d8fb695724170f88b3f8b43812c77d9fb7a3a2.jpeg)

---

<div class="post-metadata">

**Author:** ![dadajiahui](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/dadajiahui/32/70285_2.png) [@dadajiahui](https://discourse.threejs.org/u/dadajiahui)\
**Post date:** [July 10, 2026, 2:06am UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/11 "2026-07-10T02:06:16Z")

</div>

Thank you so much for your reply. The tutorials I found online say that GLB files exported from Unity don’t include lightmaps. So, do I need to import the GLB model into Belder and then re-baked it? I’m a complete beginner with Three.js, so this might be very troublesome for you.

---

<div class="post-metadata">

**Author:** ![manthrax](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/manthrax/32/2596_2.png) [@manthrax](https://discourse.threejs.org/u/manthrax)\
**Post date:** [July 10, 2026, 2:15am UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/12 "2026-07-10T02:15:00Z")

</div>

GLB files can include lightmaps I think. GLB supports multiple UV channels.. and lightmaps often live in a second UV channel.

If you can send me one of your GLTF files I can take a look at it.

If you want to chat directly about it.. hit me up on discord.

---

<div class="post-metadata">

**Author:** ![manthrax](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/manthrax/32/2596_2.png) [@manthrax](https://discourse.threejs.org/u/manthrax)\
**Post date:** [July 10, 2026, 2:16am UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/13 "2026-07-10T02:16:40Z")

</div>

And to be clear.. I’m not saying you will have to export from Blender, but I think we can use blender to figure out why your lightmap export isn’t working.

---

<div class="post-metadata">

**Author:** ![dadajiahui](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/dadajiahui/32/70285_2.png) [@dadajiahui](https://discourse.threejs.org/u/dadajiahui)\
**Post date:** [July 10, 2026, 2:29am UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/14 "2026-07-10T02:29:26Z")

</div>

Okay, thank you so much for taking the time to answer my question. How can I send you my GLB file? My GLB file was exported from Unity, and the information I found suggests that GLB files cannot be exported from Unity with lightmaps. I’m unsure whether it’s even possible to export lightmaps from Unity. So, how can I find you on Discord, and how can I send you my GLB file? I hope you can reply when you have time. I apologize for taking up your valuable time.

---

<div class="post-metadata">

**Author:** ![manthrax](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/manthrax/32/2596_2.png) [@manthrax](https://discourse.threejs.org/u/manthrax)\
**Post date:** [July 10, 2026, 2:47am UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/15 "2026-07-10T02:47:02Z")

</div>

I sent you a DM. 🙂

---

<div class="post-metadata">

**Author:** ![manthrax](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/manthrax/32/2596_2.png) [@manthrax](https://discourse.threejs.org/u/manthrax)\
**Post date:** [July 10, 2026, 3:18am UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/16 "2026-07-10T03:18:10Z")

</div>

You might also be able to just drag your .glb file into this chat if it’s small enough, or if you have an example that is small.

---

<div class="post-metadata">

**Author:** ![Lawrence3DPK](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/lawrence3dpk/32/29184_2.png) [@Lawrence3DPK](https://discourse.threejs.org/u/Lawrence3DPK)\
**Post date:** [July 10, 2026, 6:21am UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/17 "2026-07-10T06:21:39Z")

</div>

> [@manthrax](#):
>
> GLB supports multiple UV channels

it does support multiple UV channels however there is not a dedicated texture channel to store the light map texture, it can be stored in the ao or emissive channel and switched on load, I’m unsure how UniGLTF is working around handling this…

 ![addons_io-gltf2_material-channels](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/3/5/35a80ef1004272c170595251c9e857355d4eafe6.jpeg)

---

<div class="post-metadata">

**Author:** ![Gabriel\_Cuadros\_Caceres](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/gabriel_cuadros_caceres/32/54478_2.png) [@Gabriel\_Cuadros\_Caceres](https://discourse.threejs.org/u/Gabriel_Cuadros_Caceres)\
**Post date:** [July 10, 2026, 2:07pm UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/18 "2026-07-10T14:07:05Z")

</div>

i checked on internet that lightmap also include the shadow the object will have but how the object will know where to extend the shadow if the direction light of the baking is different from the light of the videogames, unless you bake the lightig usign the same lightign, position and settings and everything else also this will only work if the directon light doesnt move correct??

---

<div class="post-metadata">

**Author:** ![manthrax](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/manthrax/32/2596_2.png) [@manthrax](https://discourse.threejs.org/u/manthrax)\
**Post date:** [July 10, 2026, 4:43pm UTC](https://discourse.threejs.org/t/how-can-lightmaps-baked-in-unity-be-used-in-three-js-is-there-currently-a-workflow-for-exporting-lightmaps-from-unity-for-use-in-three-js/92706/19 "2026-07-10T16:43:32Z")

</div>

Correct. You only want to bake the light and shadows for static objects.
