Normal maps are inverted with KHR_materials_variants

オープン
#5,218 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

@mmporong がすでに取り組んでいます。

2026年11月16日 から。

  • #5223 @mmporong による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
three.js, typescript

調査の方向性

Start by reproducing the bug: load the attached bump-variants-simple sample in the model-viewer editor, open the Materials tab, and switch from variant (0) Gray to (1) Tan while comparing the normal map previews. The payload names no source files, so locate the variant-switching code path and the normalTexture handling yourself. Done means the normal map looks the same across variants, with the green channel no longer flipped, and a regression case covers it.

索引モデルが issue の本文から書いたものです。

説明

A normalTexture is inverted whenever a material is swapped using KHR_materials_variants.

  1. https://modelviewer.dev/editor/
  2. Load the attached example. bump-variants-simple.zip
  3. Switch to the Materials tab.
  4. Change the variant from (0) Gray to (1) Tan.

Result: Notice a change in the normal map, especially evident near the top of the sphere. It looks like the green channel is being inverted?

Gray Tan
主要言語
TypeScript
スター
8.4k
フォーク
964
平均マージ
5日 11時間
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google/model-viewer のほかの issue

google/model-viewer の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。