Based on a tutorial originally created by Nate Robins.
Here is the function that sets up this camera:
In the above code, eye
, up
, and at
are
global variables that are each set to a THREE.Vector3
object and
then modified by the setCameraView()
function, which is defined as follows: