Skip to content

Documentation / @ripl/3d / Context3DOptions

Interface: Context3DOptions

Defined in: 3d/src/core/context.ts:90

Options for the 3D rendering context, extending the base context options with camera parameters.

Extends

Extended by

Properties

PropertyTypeDescriptionInherited fromDefined in
dragThreshold?numberMinimum pointer movement, in pixels, before a drag gesture is recognised.ContextOptions.dragThresholdcore/src/context/types.ts:134
far?numberThe distance to the far clipping plane. Defaults to 1000.-3d/src/core/context.ts:96
fov?numberThe vertical field of view in degrees. Defaults to 60.-3d/src/core/context.ts:92
interactive?booleanWhether the context listens for and emits pointer and drag events.ContextOptions.interactivecore/src/context/types.ts:132
lightDirection?Vector3The directional light vector used for shading. Defaults to a top-left-front direction.-3d/src/core/context.ts:98
lightMode?LightModeWhether the light is fixed in world space or follows the camera. Defaults to 'world'.-3d/src/core/context.ts:100
meta?Context3DMetaArbitrary metadata attached to the context.ContextOptions.metacore/src/context/types.ts:136
near?numberThe distance to the near clipping plane. Defaults to 0.1.-3d/src/core/context.ts:94