Allow fully transparent objects.
This commit is contained in:
parent
4104197f31
commit
fc0aafb4dc
4
source/external/rhino.importer.js
vendored
4
source/external/rhino.importer.js
vendored
@ -265,10 +265,6 @@ OV.Importer3dm = class extends OV.ImporterBase
|
|||||||
SetColor (material.diffuse, rhinoMaterial.diffuseColor);
|
SetColor (material.diffuse, rhinoMaterial.diffuseColor);
|
||||||
SetColor (material.specular, rhinoMaterial.specularColor);
|
SetColor (material.specular, rhinoMaterial.specularColor);
|
||||||
material.opacity = 1.0 - rhinoMaterial.transparency;
|
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);
|
material.transparent = OV.IsLower (material.opacity, 1.0);
|
||||||
if (!IsWhite (rhinoMaterial.reflectionColor)) {
|
if (!IsWhite (rhinoMaterial.reflectionColor)) {
|
||||||
SetColor (material.diffuse, rhinoMaterial.reflectionColor);
|
SetColor (material.diffuse, rhinoMaterial.reflectionColor);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user