Skip to content

Variant normal flip#4476

Merged
elalish merged 2 commits into
masterfrom
normalFlip
Sep 22, 2023
Merged

Variant normal flip#4476
elalish merged 2 commits into
masterfrom
normalFlip

Conversation

@elalish

@elalish elalish commented Sep 22, 2023

Copy link
Copy Markdown
Contributor

Fixes #4443

I don't love this solution, but anything better will require major surgery. This is related to the fact that we are still not properly handling the relatively rare situation where a single glTF material becomes several three.js materials because it is applied to meshes with different properties (e.g. tangents or none). This will still mostly work, but I'm sure there are some similar bugs lurking.

@elalish elalish self-assigned this Sep 22, 2023
@elalish elalish requested a review from diegoteran September 22, 2023 18:31
@elalish elalish merged commit 5354010 into master Sep 22, 2023
@elalish elalish deleted the normalFlip branch September 22, 2023 20:28
JL-Vidinoti pushed a commit to vidinoti/model-viewer that referenced this pull request Apr 22, 2024
* fixed variant normal map bug

* fixed with hack
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.

normalTextures acting oddly with KHR_materials_variants

2 participants