mitigate opaque black lines causing blackouts when zooming out
This commit is contained in:
parent
d017efee19
commit
03a546a53c
1 changed files with 2 additions and 2 deletions
|
|
@ -103,10 +103,10 @@
|
||||||
let m = mcache[color];
|
let m = mcache[color];
|
||||||
if (!m) {
|
if (!m) {
|
||||||
m = mcache[color] = mesh ? new THREE.MeshPhongMaterial({
|
m = mcache[color] = mesh ? new THREE.MeshPhongMaterial({
|
||||||
transparent: layer.transparent,
|
transparent: color ? layer.transparent : true,
|
||||||
shininess: layer.shininess,
|
shininess: layer.shininess,
|
||||||
specular: layer.specular,
|
specular: layer.specular,
|
||||||
opacity: layer.opacity,
|
opacity: color ? layer.opacity : 0.25,
|
||||||
color: color,
|
color: color,
|
||||||
side: THREE.DoubleSide
|
side: THREE.DoubleSide
|
||||||
}) : new THREE.LineBasicMaterial({
|
}) : new THREE.LineBasicMaterial({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue