r3f-learning-01

LESSON 07

Cameras

Drei's PerspectiveCamera and OrthographicCamera both accept makeDefault — whichever mounts last wins and OrbitControls re-binds automatically. Toggle the leva panel to switch projection, layer in CameraShake, or hand the camera to a useFrame orbit animation.

OrthographicCamera has no perspective foreshortening — parallel lines stay parallel. zoom replaces fov as the framing knob. While the orbit animation runs we suspend OrbitControls so user input doesn't fight the animated path.