mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-09 09:52:34 +01:00
Make datum object always render on top.
This commit is contained in:
parent
999ec20fd6
commit
3d79b3ee03
1 changed files with 4 additions and 2 deletions
|
|
@ -41,12 +41,14 @@ export class MeshArrow extends Object3D {
|
|||
}
|
||||
|
||||
// dir is assumed to be normalized
|
||||
const meshMaterial = materialCreate({color, depthTest:false});
|
||||
//meshMaterial.depthTest = false;
|
||||
|
||||
const cone = new Mesh(tipGeometry, materialCreate({color}));
|
||||
const cone = new Mesh(tipGeometry, meshMaterial);
|
||||
cone.matrixAutoUpdate = false;
|
||||
this.add(cone);
|
||||
|
||||
const line = new Mesh(lineGeometry, materialCreate({color}));
|
||||
const line = new Mesh(lineGeometry, meshMaterial);
|
||||
line.matrixAutoUpdate = false;
|
||||
this.add(line);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue