Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMREM Refraction support #19611

Closed
2 of 11 tasks
JohannesDeml opened this issue Jun 10, 2020 · 2 comments · Fixed by #19623
Closed
2 of 11 tasks

PMREM Refraction support #19611

JohannesDeml opened this issue Jun 10, 2020 · 2 comments · Fixed by #19623

Comments

@JohannesDeml
Copy link
Contributor

Description of the problem

PMREM seems to miss support for refraction mapping even though the mapping option CubeUVRefractionMapping exists.

Comparison between enabled refraction of Equirectangular vs PMREM:

firefox_2020-06-10_12-26-46
Equirectangular with EquirectangularRefractionMapping

firefox_2020-06-10_12-27-00
PMREM with CubeUVRefractionMapping

I extended the envmaps example to show the problem:

Three.js version
  • [ x ] Dev
  • [ x ] r117
  • ...
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, ...)
@mrdoob
Copy link
Owner

mrdoob commented Jun 10, 2020

Related: Does GLTF support refraction?

@donmccurdy
Copy link
Collaborator

Related: Does GLTF support refraction?

Not yet, and the upcoming KHR_materials_transmission doesn't either, but refraction is on the roadmap and will build on the transmission/transmissionMap parameters. A very rough guess would be sometime in 2021.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants