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

Improve metallic transmission #21894

Merged
merged 2 commits into from
May 27, 2021
Merged

Conversation

takahirox
Copy link
Collaborator

Related PR: #21884 (comment)

Description

This PR improves metallic transmission, objects shouldn't be transmissive if metallic is 1.

image

/cc @WestLangley

@@ -100,6 +100,9 @@ void main() {
#include <clearcoat_normal_fragment_begin>
#include <clearcoat_normal_fragment_maps>
#include <emissivemap_fragment>

vec3 rawDiffuseColor = diffuseColor.rgb;
Copy link
Collaborator Author

@takahirox takahirox May 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better and non-confusing name ideas than rawDiffuseColor are welcome.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

baseDiffuseColor maybe?

We can change that later, I'll merge this for now.

@mrdoob mrdoob added this to the r129 milestone May 27, 2021
@mrdoob mrdoob merged commit 3fb3079 into mrdoob:dev May 27, 2021
@mrdoob
Copy link
Owner

mrdoob commented May 27, 2021

Thanks!

@takahirox takahirox deleted the ImproveMetallicTransmission branch May 27, 2021 15:12
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