Fix glTF metalness import.

This commit is contained in:
kovacsv 2021-08-12 13:06:51 +02:00
parent d79213e620
commit d3a362dc7f

View File

@ -734,7 +734,7 @@ OV.ImporterGltf = class extends OV.ImporterBase
}
let metallicFactor = gltfMaterial.pbrMetallicRoughness.metallicFactor;
if (metallicFactor !== undefined) {
material.metallic = metallicFactor;
material.metalness = metallicFactor;
}
let roughnessFactor = gltfMaterial.pbrMetallicRoughness.roughnessFactor;
if (roughnessFactor !== undefined) {