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

Make specularGlossiness inherit from MeshStandardMaterial #18474

Merged
merged 9 commits into from
Jan 24, 2020

Conversation

elalish
Copy link
Contributor

@elalish elalish commented Jan 24, 2020

Fixes #18463

I've just taken #14099 by @pailhead and fixed the conflicts to update it. I made only a couple of minor fixes of my own that you can see in the last commit. This replaces my first failed effort at fixing this problem in #18465; the approach from this old PR both fixes the problem and also cleans up the code nicely. It also makes it unnecessary to delve into the gltf.parser.extensions to allow this material to be cloned; it just happens automatically!

Comment on lines 697 to 698
},
specularMap: {
Copy link
Owner

Choose a reason for hiding this comment

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

Minor indentation issue.

@mrdoob mrdoob added this to the r113 milestone Jan 24, 2020
@mrdoob mrdoob merged commit ce80009 into mrdoob:dev Jan 24, 2020
@mrdoob
Copy link
Owner

mrdoob commented Jan 24, 2020

Thanks!

@elalish elalish deleted the onBeforeRender branch January 24, 2020 22:14
@pailhead
Copy link
Contributor

I think I need envoys for my PRs, when my name is directly behind them they tend to get stuck :)

I cleaned it up 6-7 times, but oh well, hopefully one of these days I’ll get some git blame.

@mrdoob
Copy link
Owner

mrdoob commented Jan 24, 2020

Try submitting your next PR with a different username 😝

@pailhead
Copy link
Contributor

Looks like the way to go :)

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.

SpecularGlossiness materials no longer reflect the environment
3 participants