|
@@ -1117,6 +1117,9 @@ var BABYLON;
|
|
|
BABYLON.Tools.Warn(babylonStandardMaterial.name + ": glTF 2.0 does not support alpha mode: " + babylonStandardMaterial.alphaMode.toString());
|
|
|
}
|
|
|
}
|
|
|
+ if (babylonStandardMaterial.emissiveColor) {
|
|
|
+ glTFMaterial.emissiveFactor = babylonStandardMaterial.emissiveColor.asArray();
|
|
|
+ }
|
|
|
glTFMaterial.pbrMetallicRoughness = glTFPbrMetallicRoughness;
|
|
|
materials.push(glTFMaterial);
|
|
|
};
|