# Lightmap for metal does not work

**URL:** https://discourse.threejs.org/t/lightmap-for-metal-does-not-work/20550
**Category:** Questions
**Tags:** lightmap, materials
**Created:** [November 9, 2020, 8:43am UTC](https://discourse.threejs.org/t/lightmap-for-metal-does-not-work/20550 "2020-11-09T08:43:48Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![RichardBao](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/richardbao/32/13319_2.png) [@RichardBao](https://discourse.threejs.org/u/RichardBao)
#### Post date: [November 9, 2020, 8:43am UTC](https://discourse.threejs.org/t/lightmap-for-metal-does-not-work/20550/1 "2020-11-09T08:43:49Z")

</div>

Hey guys, i had some problem making metal surface looking correct in THREE, i have baked lightmap for my mesh and here is the lightmap(through baking glossy pass in blender).

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/2/2fba7c8a0c141322225bdf23ed236cc17cd29895.jpeg)  
the lightmap looks correct. and all other non-metal mesh’s lightmap works ok.  
but when the metal mesh just doesn’t work.  
this is how it looks in THREE.  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/c/c140791291af14cc5788282e493c8aac70351f46.jpeg)

here is what it should look like(in blender)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/1/192e1eec7f5525db34e1567ecb24dfa21af50ef3.jpeg)

---

<div class="post-metadata">

### Author: ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)
#### Post date: [November 9, 2020, 9:36am UTC](https://discourse.threejs.org/t/lightmap-for-metal-does-not-work/20550/2 "2020-11-09T09:36:07Z")

</div>

Have you applied an environment map to your model? Keep in mind that Blender shows reflections which is not yet true for your app.

Besides, a light map should be in grayscale which seems not true for your generated texture.

---

<div class="post-metadata">

### Author: ![RichardBao](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/richardbao/32/13319_2.png) [@RichardBao](https://discourse.threejs.org/u/RichardBao)
#### Post date: [November 9, 2020, 9:43am UTC](https://discourse.threejs.org/t/lightmap-for-metal-does-not-work/20550/3 "2020-11-09T09:43:34Z")

</div>

the lightmap is colored because the light source is has color, so i suppose it’s not a problem.  
i tried applied environment map to it as well. still the same.  
but if i manually decrease the metalness to anything but 1. it could work, here is metalness != 1

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/7/7150cf81ca4e34a468da18fbebec063d323017a1.jpeg)  
the lightmap just doesn’t work on metal surface.

and if i make the metalness != 1. the lightmap can work instantly,

---

<div class="post-metadata">

### Author: ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)
#### Post date: [November 9, 2020, 9:47am UTC](https://discourse.threejs.org/t/lightmap-for-metal-does-not-work/20550/4 "2020-11-09T09:47:47Z")

</div>

How does it look with metalness `0.99`?

---

<div class="post-metadata">

### Author: ![RichardBao](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/richardbao/32/13319_2.png) [@RichardBao](https://discourse.threejs.org/u/RichardBao)
#### Post date: [November 9, 2020, 9:56am UTC](https://discourse.threejs.org/t/lightmap-for-metal-does-not-work/20550/5 "2020-11-09T09:56:19Z")

</div>

I just test different value again.  
the lightmap can show up only when metalness value \<= 0.9.

---

<div class="post-metadata">

### Author: ![donmccurdy](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/donmccurdy/32/33209_2.png) [@donmccurdy](https://discourse.threejs.org/u/donmccurdy)
#### Post date: [November 9, 2020, 5:27pm UTC](https://discourse.threejs.org/t/lightmap-for-metal-does-not-work/20550/6 "2020-11-09T17:27:26Z")

</div>

Metallic materials require an environment map — if an environment map is having no effect on the material, something may be set up incorrectly, can you share a demo to debug?

---

<div class="post-metadata">

### Author: ![RichardBao](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/richardbao/32/13319_2.png) [@RichardBao](https://discourse.threejs.org/u/RichardBao)
#### Post date: [November 10, 2020, 1:47am UTC](https://discourse.threejs.org/t/lightmap-for-metal-does-not-work/20550/7 "2020-11-10T01:47:23Z")

</div>

I’ll try create a simple one to debug.
