Class: Camera

shf3d.Camera

Represents a camera in the scene.

There may be multiple cameras in a scene and the active camera may be switched in the View element by assigning the camera property.

new shf3d.Camera ()

Properties:
Name Type Description
aspect number

(default: 1) The aspect ratio of the camera view.

fieldOfView number

(default: 45) The field of view in degrees.

projection string

(default: "perspective") The projection mode. One of perspective|orthographic

Extends