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
Name | Type | Description |
---|---|---|
aspectRatio | Float | Aspect ratio of the viewport, usually equals width/height. |
fovy | Float | Field of view angle in the y direction. |
nearPlane | Float | Distance from the viewer to the near clipping plane. |
farPlane | Float | Distance from the viewer to the far clipping plane. |
offset | Vec2 | Offset of the projection for stereoscopic rendering. |