The [PerspectiveView
] class is a subclass of View that creates a perspective view using classic "3D camera" view state parameters.
To render, PerspectiveView
needs to be used together with a viewState
with the following parameters:
eye
(Number[3]
) - The eye position in world coordinates.lookAt
(Number[3]
) - The position being looked at.up
(Number[3]
) - The up direction.
For more information on using View
classes, consult the Views article.
new PerspectiveView({..., fov: 45});
PerspectiveView
takes the same parameters as the View superclass constructor.
Inherits all View methods.