|
@@ -32,9 +32,14 @@
|
|
private _intersectionThreshold: number;
|
|
private _intersectionThreshold: number;
|
|
private _colorShader: ShaderMaterial;
|
|
private _colorShader: ShaderMaterial;
|
|
|
|
|
|
- constructor(name: string, scene: Scene, parent: Node = null, source?: Mesh, doNotCloneChildren?: boolean) {
|
|
|
|
|
|
+ constructor(name: string, scene: Scene, parent: Node = null, source?: LinesMesh, doNotCloneChildren?: boolean) {
|
|
super(name, scene, parent, source, doNotCloneChildren);
|
|
super(name, scene, parent, source, doNotCloneChildren);
|
|
|
|
|
|
|
|
+ if (source) {
|
|
|
|
+ this.color = source.color.clone();
|
|
|
|
+ this.alpha = source.alpha;
|
|
|
|
+ }
|
|
|
|
+
|
|
this._intersectionThreshold = 0.1;
|
|
this._intersectionThreshold = 0.1;
|
|
this._colorShader = new ShaderMaterial("colorShader", scene, "color",
|
|
this._colorShader = new ShaderMaterial("colorShader", scene, "color",
|
|
{
|
|
{
|