Finish explode tool
This commit is contained in:
parent
f998ecd519
commit
3e78657aef
5 changed files with 149 additions and 51 deletions
|
@ -52,15 +52,11 @@ async function buildMesh(layerData: MappedFeature) {
|
|||
const indices = new BufferAttribute(indexArray, 1);
|
||||
|
||||
geometry.setIndex(indices);
|
||||
geometry.scale(1, 1, 1);
|
||||
geometry.computeBoundingSphere();
|
||||
geometry.computeVertexNormals();
|
||||
geometry.computeBoundingBox();
|
||||
|
||||
const material = new MeshStandardMaterial({
|
||||
color: color,
|
||||
metalness: 0.0,
|
||||
roughness: 0.75,
|
||||
roughness: 1.0,
|
||||
flatShading: true,
|
||||
side: DoubleSide,
|
||||
wireframe: false,
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue