This demo also a frustum drawn using red lines around the near plane, and green around the far. The AT point is the CYAN ball, the EYE location is the MAGENTA ball. In this demo, my code calculates the exact geometry, given the fov, aspect ratio, and other parameters.
Here is the function that sets up this camera:
Here is how the frustum parameters are calculated:
If you're curious about how the lines of the frustum are drawn, you're
welcome to view the code, but that involves a THREE.Line
object, which we haven't learned about, because we're emphasizing 3D
objects, rather than lines.