|
@@ -81,6 +81,8 @@ LineSegments2.prototype = Object.assign( Object.create( Mesh.prototype ), {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ var threshold = ( raycaster.params.Line2 !== undefined ) ? raycaster.params.Line2.threshold || 0 : 0;
|
|
|
+
|
|
|
var ray = raycaster.ray;
|
|
|
var camera = raycaster.camera;
|
|
|
var projectionMatrix = camera.projectionMatrix;
|
|
@@ -88,7 +90,7 @@ LineSegments2.prototype = Object.assign( Object.create( Mesh.prototype ), {
|
|
|
var geometry = this.geometry;
|
|
|
var material = this.material;
|
|
|
var resolution = material.resolution;
|
|
|
- var lineWidth = material.linewidth;
|
|
|
+ var lineWidth = material.linewidth + threshold;
|
|
|
|
|
|
var instanceStart = geometry.attributes.instanceStart;
|
|
|
var instanceEnd = geometry.attributes.instanceEnd;
|