This demo also a frustum drawn using yellow lines. This is one where 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.