在threejs 中判断一个对象(vector坐标)是否在相机的可视区内
let tempV = vector.applyMatrix4(camera.matrixWorldInverse).applyMatrix4(camera.projectionMatrix);
if ( (Math.abs(tempV.x) > 1) || (Math.abs(tempV.y) > 1) || (Math.abs(tempV.z) > 1) ) {
// 在视野外了
} else {
// 在视野内
}