isolate render so we can make predictions about what type to use
This commit is contained in:
parent
df6afeeebb
commit
5be7bdcc08
3 changed files with 101 additions and 75 deletions
|
|
@ -490,10 +490,10 @@
|
|||
}
|
||||
if (faces.length) {
|
||||
const mat = new THREE.MeshPhongMaterial({
|
||||
transparent: true,
|
||||
shininess: 100,
|
||||
specular: 0x222222,
|
||||
opacity: 1,
|
||||
transparent: data.color.opacity != 1,
|
||||
shininess: shininess,
|
||||
specular: specular,
|
||||
opacity: data.color.opacity,
|
||||
color: data.color.face,
|
||||
side: THREE.DoubleSide
|
||||
});
|
||||
|
|
@ -509,10 +509,10 @@
|
|||
}
|
||||
if (paths.length) {
|
||||
const mat = new THREE.MeshPhongMaterial({
|
||||
transparent: true,
|
||||
shininess: 100,
|
||||
specular: 0x222222,
|
||||
opacity: 1,
|
||||
transparent: data.color.opacity != 1,
|
||||
shininess: shininess,
|
||||
specular: specular,
|
||||
opacity: data.color.opacity,
|
||||
color: data.color.face,
|
||||
side: THREE.DoubleSide
|
||||
});
|
||||
|
|
@ -535,4 +535,7 @@
|
|||
|
||||
slice.view.add(group);
|
||||
};
|
||||
|
||||
const shininess = 15;
|
||||
const specular = 0x444444;
|
||||
})();
|
||||
|
|
|
|||
|
|
@ -16,7 +16,8 @@
|
|||
if (typeof(colors) === 'number') {
|
||||
colors = {
|
||||
line: color,
|
||||
face: color
|
||||
face: color,
|
||||
opacity: 1
|
||||
};
|
||||
}
|
||||
this.current = layers[layer] = layers[layer] || {
|
||||
|
|
@ -26,8 +27,9 @@
|
|||
paths: [],
|
||||
color: colors || {
|
||||
line: 0,
|
||||
face: 0
|
||||
}
|
||||
face: 0,
|
||||
opacity: 1
|
||||
},
|
||||
};
|
||||
return this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue