Skip to main content

Type Alias: PerspectiveLens

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

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

A lens that applies a perspective projection.

Properties

fovy

fovy: Float;

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

Field of view angle in the y direction.

Default Value

60;

nearPlane

nearPlane: Float;

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

Distance from the viewer to the near clipping plane.

Default Value

0.01;

farPlane

farPlane: Float;

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

Distance from the viewer to the far clipping plane. 0 for infinite far plane.

Default Value

0;

offset

offset: Vec2;

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

Offset of the projection for stereoscopic rendering.

Default Value

(0, 0);