mitigate opaque black lines causing blackouts when zooming out

This commit is contained in:
Stewart Allen 2020-07-03 13:08:35 -04:00
commit 03a546a53c

View file

@ -103,10 +103,10 @@
let m = mcache[color];
if (!m) {
m = mcache[color] = mesh ? new THREE.MeshPhongMaterial({
transparent: layer.transparent,
transparent: color ? layer.transparent : true,
shininess: layer.shininess,
specular: layer.specular,
opacity: layer.opacity,
opacity: color ? layer.opacity : 0.25,
color: color,
side: THREE.DoubleSide
}) : new THREE.LineBasicMaterial({