When dealing with a 2D canvas, it's common practice to determine if an element is off-screen by checking its position coordinates like so:
if( pos.x > window.innerWidth || pos.x < 0 ||
pos.y > window.innerHeight || pos.y < 0 ) {
// Element has left the screen
}
However, in a Three.js scene, how can I verify if something is still within view of the camera?