substantially improve appearance of CAM animations by using solids instead of lines
This commit is contained in:
parent
5f6e381ef9
commit
f43ab7ec0e
5 changed files with 66 additions and 27 deletions
|
|
@ -241,13 +241,11 @@ function createLineMaterial(color, array) {
|
|||
}
|
||||
|
||||
function createStandardMaterial(color, flat) {
|
||||
return new THREE.MeshStandardMaterial({
|
||||
emissive,
|
||||
roughness,
|
||||
metalness,
|
||||
return new THREE.MeshMatcapMaterial({
|
||||
transparent: color.opacity != 1,
|
||||
opacity: color.opacity || 1,
|
||||
color: color.face,
|
||||
flatShading: true,
|
||||
side: flat ? THREE.DoubleSide : THREE.FrontSide
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue