From 51f42f8505954d17cbd35d343076d7fb1a65f77c Mon Sep 17 00:00:00 2001 From: Viktor Kovacs Date: Tue, 11 May 2021 20:47:21 +0200 Subject: [PATCH] Revert PNG Transparency #21 It breaks other models, so keep it as it is until a better solution. --- source/import/importerutils.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source/import/importerutils.js b/source/import/importerutils.js index 580bdda..b50395a 100644 --- a/source/import/importerutils.js +++ b/source/import/importerutils.js @@ -76,10 +76,5 @@ OV.UpdateMaterialTransparency = function (material) material.transparent = false; if (OV.IsLower (material.opacity, 1.0)) { material.transparent = true; - } else if (material.diffuseMap !== null) { - let extension = OV.GetFileExtension (material.diffuseMap.name); - if (extension === 'png') { - material.transparent = true; - } } };