From fc0aafb4dc2976c19d3c36bafdb479a95ee397b3 Mon Sep 17 00:00:00 2001 From: Viktor Kovacs Date: Sat, 17 Apr 2021 10:34:04 +0200 Subject: [PATCH] Allow fully transparent objects. --- source/external/rhino.importer.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/external/rhino.importer.js b/source/external/rhino.importer.js index b9f08d4..d142459 100644 --- a/source/external/rhino.importer.js +++ b/source/external/rhino.importer.js @@ -265,10 +265,6 @@ OV.Importer3dm = class extends OV.ImporterBase SetColor (material.diffuse, rhinoMaterial.diffuseColor); SetColor (material.specular, rhinoMaterial.specularColor); material.opacity = 1.0 - rhinoMaterial.transparency; - if (OV.IsEqual (material.opacity, 0.0)) { - // TODO: ? - material.opacity = 0.1; - } material.transparent = OV.IsLower (material.opacity, 1.0); if (!IsWhite (rhinoMaterial.reflectionColor)) { SetColor (material.diffuse, rhinoMaterial.reflectionColor);