Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

LensCamera

Lucas Crane edited this page Jan 29, 2020 · 2 revisions

Extends PerspectiveCamera. This class models a thin lens to produce a photorealistic depth-of-field effect.

LensCamera does not work in the latest version!

Constructor

LensCamera ( fov : Number, aspect: Number )

Properties

.aperture : Number

Specifies the size of the opening of the lens. Higher values result in less depth of field and more blurring for objects outside the focal point. Default is 0.01.

.focus : Number

Specifies the distance to the focal point. Objects away from this distance will be more out of focus. Default is 10.