# How to change shininess of an already existing material?

**URL:** <https://discourse.threejs.org/t/how-to-change-shininess-of-an-already-existing-material/34319>\
**Category:** Questions\
**Tags:** shininess, materials\
**Created:** [January 31, 2022, 10:37am UTC](https://discourse.threejs.org/t/how-to-change-shininess-of-an-already-existing-material/34319 "2022-01-31T10:37:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ExoGeN](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/exogen/32/23277_2.png) [@ExoGeN](https://discourse.threejs.org/u/ExoGeN)\
**Post date:** [January 31, 2022, 10:37am UTC](https://discourse.threejs.org/t/how-to-change-shininess-of-an-already-existing-material/34319/1 "2022-01-31T10:37:43Z")

</div>

Hi there,

i try to change the shininess of a material that is loaded directly from a glb file.

I am can already change the color of the object but now i try to add shininess or edit it.

```javascript
function setMaterial(parent, type, mtl, new_color) {
 parent.traverse(o => {
   if (o.isMesh && o.nameID != null) {
     if (o.nameID == type) {
       //o.material = mtl;
       o.material.color.set(new_color);
     }
   }
 });
}

```

Is there a way to do something like that?

```javascript
o.material.shininess.set(10);

```

---

<div class="post-metadata">

**Author:** ![ExoGeN](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/exogen/32/23277_2.png) [@ExoGeN](https://discourse.threejs.org/u/ExoGeN)\
**Post date:** [January 31, 2022, 11:29am UTC](https://discourse.threejs.org/t/how-to-change-shininess-of-an-already-existing-material/34319/2 "2022-01-31T11:29:09Z")

</div>

How does setValues work ?

```javascript
o.material.setValues({shininess:10});

```

Doesn’t seem to work…

---

<div class="post-metadata">

**Author:** ![Chaser\_Code](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/chaser_code/32/20199_2.png) [@Chaser\_Code](https://discourse.threejs.org/u/Chaser_Code)\
**Post date:** [January 31, 2022, 12:14pm UTC](https://discourse.threejs.org/t/how-to-change-shininess-of-an-already-existing-material/34319/3 "2022-01-31T12:14:57Z")

</div>

o.material.shininess=10;

---

<div class="post-metadata">

**Author:** ![ExoGeN](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/exogen/32/23277_2.png) [@ExoGeN](https://discourse.threejs.org/u/ExoGeN)\
**Post date:** [January 31, 2022, 12:25pm UTC](https://discourse.threejs.org/t/how-to-change-shininess-of-an-already-existing-material/34319/4 "2022-01-31T12:25:59Z")

</div>

I don’t know why but i can’t change the shininess with this. Nothing is changing. Maybe i need to double check my code and the order. Will give feedback when i find the solution.

---

<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:** [January 31, 2022, 1:33pm UTC](https://discourse.threejs.org/t/how-to-change-shininess-of-an-already-existing-material/34319/5 "2022-01-31T13:33:38Z")

</div>

MeshStandardMaterial (which is what glTF models usually have) does not have a ‘shininess’ property. Try decreasing the roughness instead, that’s a similar PBR property. See: [MeshStandardMaterial docs](https://threejs.org/docs/?q=meshstand#api/en/materials/MeshStandardMaterial).

---

<div class="post-metadata">

**Author:** ![ExoGeN](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/exogen/32/23277_2.png) [@ExoGeN](https://discourse.threejs.org/u/ExoGeN)\
**Post date:** [January 31, 2022, 1:45pm UTC](https://discourse.threejs.org/t/how-to-change-shininess-of-an-already-existing-material/34319/6 "2022-01-31T13:45:49Z")

</div>

> [@donmccurdy](#):
>
> MeshStandardMaterial (which is what glTF models usually have) does not have a ‘shininess’ property.

Ok thank you ! That explains why shininess is not working. I am trying now roughness and other parameter from [MeshStandardMaterial](https://threejs.org/docs/?q=meshstand#api/en/materials/MeshStandardMaterial)
