# See-through glass is pixelated

**URL:** <https://discourse.threejs.org/t/see-through-glass-is-pixelated/34243>\
**Category:** Questions\
**Tags:** materials\
**Created:** [January 28, 2022, 3:30pm UTC](https://discourse.threejs.org/t/see-through-glass-is-pixelated/34243 "2022-01-28T15:30:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![node](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/node/32/23861_2.png) [@node](https://discourse.threejs.org/u/node)\
**Post date:** [January 28, 2022, 3:30pm UTC](https://discourse.threejs.org/t/see-through-glass-is-pixelated/34243/1 "2022-01-28T15:30:45Z")

</div>

I’m stuck on a particular part of a configurator for a client. The bottle is a glb file, and I’m modifying the materials inside three.js. It has a environment cubemap. The problem is the see-through part of the bottle which is really pixelated and really obvious. Have tried tweaking the values of the materials but still no solution.

 ![Screenshot 2022-01-28 at 17.23.22](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/1/d/1de047d21f475a7ff9138a58f0215e65050b0070.png)

```javascript
eightBottle.material.transmission = 4;
eightBottle.material.roughness = 0.1;
eightBottle.material.castShadow = true;
eightBottle.material.receiveShadow = false;
eightBottle.material.metalness = 0.5;
eightBottle.material.ior = 1;
eightBottle.material.thickness = 0.01;
eightBottle.material.envMap = textureCube;
eightBottle.material.envMapIntensity = 0.5;
eightBottle.material.needsUpdate = true;

```

---

<div class="post-metadata">

**Author:** ![canadaduane](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/canadaduane/32/10216_2.png) [@canadaduane](https://discourse.threejs.org/u/canadaduane)\
**Post date:** [July 14, 2022, 10:24pm UTC](https://discourse.threejs.org/t/see-through-glass-is-pixelated/34243/2 "2022-07-14T22:24:22Z")

</div>

Did you discover a solution to this?

---

<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:** [July 14, 2022, 11:54pm UTC](https://discourse.threejs.org/t/see-through-glass-is-pixelated/34243/3 "2022-07-14T23:54:38Z")

</div>

> [@node](#):
>
> `eightBottle.material.transmission = 4;`

transmission should be a value between 0 and 1, representing the fraction of light passing through. I’m not sure what a larger value like this will do.

Usually values closer to 0 or closer to 1, as opposed to somewhere in the middle, will make the limited resolution of the transmission render target less obvious. There is no other workaround for the moment, see [Is there a way to set roughness transmission mipmap resolution? - #3 by donmccurdy](https://discourse.threejs.org/t/is-there-a-way-to-set-roughness-transmission-mipmap-resolution/28145/3).
