# In rev.151 examples the file /materials-physical-transmission has errors

**URL:** https://discourse.threejs.org/t/in-rev-151-examples-the-file-materials-physical-transmission-has-errors/50422
**Category:** Questions
**Tags:** pbr
**Created:** [April 15, 2023, 10:28pm UTC](https://discourse.threejs.org/t/in-rev-151-examples-the-file-materials-physical-transmission-has-errors/50422 "2023-04-15T22:28:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![winnie](https://avatars.discourse-cdn.com/v4/letter/w/e480ec/32.png) [@winnie](https://discourse.threejs.org/u/winnie)
#### Post date: [April 15, 2023, 10:28pm UTC](https://discourse.threejs.org/t/in-rev-151-examples-the-file-materials-physical-transmission-has-errors/50422/1 "2023-04-15T22:28:12Z")

</div>

In the downloaded three js v.151 master there is an example:  
webgl\_materials\_physical\_transmission.  
.151 master/examples/webgl\_materials\_physical\_transmission

The example is not working Iam using an older version of FF but that should not matter other examples are working just fine.  
I think its the kinda new “transmission” property of the physicalMaterial that are giving errors!

when I comment out. // transmission: 0.5, the rest will work.

Some one should take a look at the “transmission property”  
I tried a simple glas setup with different thress js versions  
but no luck so far.

Best,  
Winnie-jo

---

<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: [April 15, 2023, 10:41pm UTC](https://discourse.threejs.org/t/in-rev-151-examples-the-file-materials-physical-transmission-has-errors/50422/2 "2023-04-15T22:41:08Z")

</div>

Latest release is v0.151.3, which contains patches not in the original r151 release. Have you updated to that? Does this page on the website work for you, or does it give errors?

[https://threejs.org/examples/?q=transm#webgl\_materials\_physical\_transmission](https://threejs.org/examples/?q=transm#webgl_materials_physical_transmission)

It seems OK for me but if it’s broken on your device, I’d recommend filing a bug on GitHub with the requested details about your computer.

---

<div class="post-metadata">

### Author: ![winnie](https://avatars.discourse-cdn.com/v4/letter/w/e480ec/32.png) [@winnie](https://discourse.threejs.org/u/winnie)
#### Post date: [April 15, 2023, 11:00pm UTC](https://discourse.threejs.org/t/in-rev-151-examples-the-file-materials-physical-transmission-has-errors/50422/3 "2023-04-15T23:00:30Z")

</div>

@donmccurdy Your example works when I set in the controls: transmission to 0 but 0.1+ will hide the sphere.

Iam trying out this code:  
const meshMaterial = new THREE.MeshPhysicalMaterial({  
color: 0xff0000,  
roughness: 0,  
transmission: 1,  
thickness: 0.5,  
});

in rev120, and just now downloaded rev151 from the 3js site, but the “transmission property” seems the main issue.

Iam using chrome v.112 and FF v.102 both up to date for an older OS: macOS14 running on a MBP I7proccesor (also older type.).

---

<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: [April 16, 2023, 1:58am UTC](https://discourse.threejs.org/t/in-rev-151-examples-the-file-materials-physical-transmission-has-errors/50422/4 "2023-04-16T01:58:38Z")

</div>

This sounds like a device-specific bug, in that case. Could you file a bug report at [Sign in to GitHub · GitHub](https://github.com/mrdoob/three.js/issues/new/choose) ?

The problem does not happen on my macOS computer, so it’s helpful if you can be very specific, especially if any errors appear in the JavaScript console. Does the problem occur in other browsers on your computer?

---

<div class="post-metadata">

### Author: ![winnie](https://avatars.discourse-cdn.com/v4/letter/w/e480ec/32.png) [@winnie](https://discourse.threejs.org/u/winnie)
#### Post date: [April 16, 2023, 12:17pm UTC](https://discourse.threejs.org/t/in-rev-151-examples-the-file-materials-physical-transmission-has-errors/50422/5 "2023-04-16T12:17:42Z")

</div>

Yes it does in both in FF and Chrome  
few Console errors:

- errors Intel HD Graphics
- three.module.js:19554 THREE.WebGLProgram: Shader Error 0 - VALIDATE\_STATUS false  
Program Info Log: Fragment shader is not compiled.  
FRAGMENT / ERROR: 0:952: ‘textureLod’ : no matching overloaded function found  
etc.

will file a bug report
