envMaps = refraction not working in r131 for PBR materials
See original GitHub issueDescribe the bug
Since release 131 it’s not possible to change the mapping of the envMap
to RefractionMapping for PBR materials.
r130 | r131 |
---|---|
Probably it is related to the following adjustment:
The envMap property of MeshStandardMaterial and MeshPhysicalMaterial is now internally converted to a PMREM.
See also:
- Migration-Guide: https://github.com/mrdoob/three.js/wiki/Migration-Guide#130--131
- PR: https://github.com/mrdoob/three.js/pull/22178
To Reproduce
Steps to reproduce the behavior:
- Checkout tag r130 or r131
- Run three.js/docs/scenes/material-browser.html#MeshStandardMaterial
- Change parameter (roughness: 0, metalness: 1, color: ffffff, envMaps: refraction
(or run material-browser: https://threejs.org/docs/scenes/material-browser.html#MeshStandardMaterial directly)
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Using the Refractiontexture with a PBR Material - Questions
The refraction is made based on a screen texture without the related object. However when using two of these, the result is a...
Read more >Topics tagged pbr - three.js forum
Topics tagged pbr. ... 2, 404, October 13, 2021. Problems with envMaps when updating from r130 to r131 ... PBR material looks too...
Read more >The PBR Guide - Part 1 - 3D & AR - Adobe
As with metals, we need to use real-world measured values, but it can be difficult to find an index of refraction (IOR) for...
Read more >Cinema 4D: PBR Workflow And ProRender - YouTube
In this video tutorial we go over the PBR workflow within Cinema 4D, we will cover what PBR is and isn't, and we...
Read more >PBR Nodes in Node Materials Part 4 - YouTube
Patrick is back with part 4 of our series on PBR nodes in the Babylon.js Node Material. In this one, he takes us...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
When
CubeUVRefractionMapping
is removed, yes. The automatic PMREM conversion does already support only reflection.The effect of
CubeUVRefractionMapping
is physically not correct so using refraction based on transmission will look different.When
CubeUVRefractionMapping
is removed, then no.PBR materials only supports the cubeUV format. Meaning
CubeRefractionMapping
,CubeReflectionMapping
as well asEquirectangularRefractionMapping
andEquirectangularReflectionMapping
are no valid mappings.Oh wait, I guess you mean removing it only from the PBR materials but still keep the code for the other materials?