substantially improve appearance of CAM animations by using solids instead of lines

This commit is contained in:
Stewart Allen 2022-10-11 13:52:08 -04:00
commit f43ab7ec0e
5 changed files with 66 additions and 27 deletions

View file

@ -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
});
}