Camera Lab

In this lab you will add a first-person camera interface to a renderer so that the user can move around the scene with the keyboard and mouse.


Your first challenge is to implement a Camera class by completing the following steps:

Implement your class in camera.js. Don't forget to export it.
Add a constructor.
Define methods reorient, strafe, and advance.
Define methods yaw and pitch.
Show your class to your instructor to receive credit.


Your second challenge is to incorporate your camera into the provided renderer by completing the following steps:

Set up the camera in initialize.
Handle the WASD keys.
Add mouse-looking.
Show your instructor your working renderer to receive credit.