Skip to main content

PerspectiveLens

type PerspectiveLens = {
aspectRatio: Float;
fovy: Float;
nearPlane: Float;
farPlane: Float;
offset: Vec2;
};

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:614

A lens that applies a perspective projection.

Type declaration

NameTypeDescription
aspectRatioFloatAspect ratio of the viewport, usually equals width/height.
fovyFloatField of view angle in the y direction.
nearPlaneFloatDistance from the viewer to the near clipping plane.
farPlaneFloatDistance from the viewer to the far clipping plane.
offsetVec2Offset of the projection for stereoscopic rendering.