Add clipping planes to topography
This commit is contained in:
parent
961c2f79cc
commit
618979ad52
6 changed files with 65 additions and 291 deletions
|
@ -1,6 +1,7 @@
|
|||
import {
|
||||
BufferAttribute,
|
||||
BufferGeometry,
|
||||
Color,
|
||||
DoubleSide,
|
||||
EdgesGeometry,
|
||||
Group,
|
||||
|
@ -649,8 +650,13 @@ function generateCapMeshes(
|
|||
? 1
|
||||
: -1;
|
||||
|
||||
const color =
|
||||
mesh.material instanceof MeshStandardMaterial
|
||||
? mesh.material.color
|
||||
: new Color(1, 1, 1);
|
||||
|
||||
const material = new MeshStandardMaterial({
|
||||
color: (mesh.material as MeshStandardMaterial).color,
|
||||
color,
|
||||
side: DoubleSide,
|
||||
metalness: 0.0,
|
||||
roughness: 1.0,
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue