提交 dbd67dea 编写于 作者: T Takahiro

Add the comment about glTF metallic texture channel into GLTF2Loader

上级 f94562b5
......@@ -1230,6 +1230,13 @@ THREE.GLTF2Loader = ( function () {
var textureIndex = metallicRoughness.metallicRoughnessTexture.index;
// Note that currently metalnessMap would be entirely ignored because
// Three.js and glTF specification use different texture channels for metalness
// (Blue: Three.js, Red: glTF).
// But glTF specification team is discussing if they can change.
// Let's keep an eye on it so far.
//
// https://github.com/KhronosGroup/glTF/issues/857
materialParams.metalnessMap = dependencies.textures[ textureIndex ];
materialParams.roughnessMap = dependencies.textures[ textureIndex ];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册