Remove emissive color settings because it breaks some models.

This commit is contained in:
kovacsv 2021-08-08 22:13:37 +02:00
parent ad66ea839f
commit 9625bb721e

View File

@ -182,7 +182,8 @@ OV.ThreeImporter = class extends OV.ImporterBase
material.alphaTest = threeMaterial.alphaTest;
if (threeMaterial.type === 'MeshPhongMaterial') {
SetColor (material.specular, threeMaterial.specular);
SetColor (material.emissive, threeMaterial.emissive);
// TODO:
//SetColor (material.emissive, threeMaterial.emissive);
material.shininess = threeMaterial.shininess / 100.0;
}
if (threeMaterial.map !== undefined && threeMaterial.map !== null) {