From 9625bb721ec407d761a286edd88ed8f223efc65d Mon Sep 17 00:00:00 2001 From: kovacsv Date: Sun, 8 Aug 2021 22:13:37 +0200 Subject: [PATCH] Remove emissive color settings because it breaks some models. --- source/threejs/threeimporter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/threejs/threeimporter.js b/source/threejs/threeimporter.js index 22e1baa..4a2ab00 100644 --- a/source/threejs/threeimporter.js +++ b/source/threejs/threeimporter.js @@ -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) {