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

WebGLRenderer, GLTFLoader: Clean up .vertexTangents removal. #22182

Merged
merged 1 commit into from
Jul 26, 2021

Conversation

donmccurdy
Copy link
Collaborator

My change in #22146 did a bit too much, in trying to detect DirectX and OpenGL normal maps. I think it would be better to keep the 1, -1 normalScale setting in GLTFLoader, since that is a better indicator of the normal map convention than .flipY. For glTF models, there should be no rendering differences between:

  1. r130
  2. current dev branch
  3. after this PR

But for anyone using .flipY=false (e.g. anything with Basis textures) for normal maps, but not using the OpenGL-style normal map convention, the dev branch has a change that probably isn't desirable. This PR addresses that problem.

I think it would be best to include this in r131 — if that's an issue, we can revert #22146 for now.

/cc @mrdoob @WestLangley

@mrdoob mrdoob added this to the r131 milestone Jul 26, 2021
@mrdoob mrdoob merged commit 18a9dfe into mrdoob:dev Jul 26, 2021
@mrdoob
Copy link
Owner

mrdoob commented Jul 26, 2021

Thanks!

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