Skip to content

Make specularGlossiness inherit from MeshStandardMaterial#18474

Merged
mrdoob merged 9 commits intomrdoob:devfrom
elalish:onBeforeRender
Jan 24, 2020
Merged

Make specularGlossiness inherit from MeshStandardMaterial#18474
mrdoob merged 9 commits intomrdoob:devfrom
elalish:onBeforeRender

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