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:622

Perspective projection lens with vertical field of view and near/far clipping planes.

Properties

fovy

fovy: Float;

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

Vertical field of view angle in degrees.

Default Value

60;

nearPlane

nearPlane: Float;

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

Near clipping plane distance (meters).

Default Value

0.01;

farPlane

farPlane: Float;

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

Far clipping plane distance (meters). Set to 0 for an infinite far plane.

Default Value

0;

offset

offset: Vec2;

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

Projection center offset for stereoscopic rendering (meters).

Default Value

(0, 0);