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

MeshPhysicalMaterial: Fix refraction shader code #22224

Merged
merged 2 commits into from
Jul 30, 2021

Conversation

takahirox
Copy link
Collaborator

Please refer to ##22009 (comment) and the following comments

Description

This PR fixes MeshPhysicalMaterial refraction shader code bug. I should have used world normal for calculating refraction but I wrongly used world normal applied view matrix.

@mrdoob
Copy link
Owner

mrdoob commented Jul 30, 2021

Excellent! I'll include this in today's 0.131.1.

@mrdoob mrdoob added this to the r131 milestone Jul 30, 2021
@mrdoob mrdoob merged commit 361d9a2 into mrdoob:dev Jul 30, 2021
@mrdoob
Copy link
Owner

mrdoob commented Jul 30, 2021

Thanks!

@mrdoob mrdoob modified the milestones: r131, r132 Jul 30, 2021
@takahirox takahirox deleted the FixRefractionCode branch July 30, 2021 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants