|
@@ -82271,8 +82271,9 @@ void main()
|
|
ray.set(nearPoint, cos>0?this.lineDir:this.lineDir.clone().negate());
|
|
ray.set(nearPoint, cos>0?this.lineDir:this.lineDir.clone().negate());
|
|
let camDirPlane = new Plane().setFromNormalAndCoplanarPoint(dir, eyePos);
|
|
let camDirPlane = new Plane().setFromNormalAndCoplanarPoint(dir, eyePos);
|
|
nearPoint = ray.ray.intersectPlane(camDirPlane, new Vector3());
|
|
nearPoint = ray.ray.intersectPlane(camDirPlane, new Vector3());
|
|
-
|
|
|
|
- if(!nearPoint)console.error('no?',cos, this.lineDir, p1, p2, dir);
|
|
|
|
|
|
+ if(!nearPoint){//线是垂直的,视线是水平的时候
|
|
|
|
+ return label.setPos(center)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|