Allow fully transparent objects.

This commit is contained in:
Viktor Kovacs 2021-04-17 10:34:04 +02:00
parent 4104197f31
commit fc0aafb4dc

View File

@ -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);