Documentation / @ripl/3d / Context3DOptions
Interface: Context3DOptions ​
Defined in: 3d/src/core/context.ts:149
Options for the 3D rendering context, extending the base context options with camera parameters.
Extends ​
Extended by ​
Properties ​
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
ambientIntensity? | number | Intensity of the default rig's ambient light. Defaults to 0.3. | - | 3d/src/core/context.ts:168 |
dragThreshold? | number | Minimum pointer movement, in pixels, before a drag gesture is recognized. | ContextOptions.dragThreshold | core/src/context/types.ts:154 |
far? | number | The distance to the far clipping plane. Defaults to 1000. | - | 3d/src/core/context.ts:155 |
fog? | Fog | Atmospheric haze blending distant geometry towards a colour. Omit for none. | - | 3d/src/core/context.ts:170 |
fov? | number | The vertical field of view in degrees. Defaults to 60. | - | 3d/src/core/context.ts:151 |
interactive? | boolean | Whether the context listens for and emits pointer and drag events. | ContextOptions.interactive | core/src/context/types.ts:152 |
lightDirection? | Vector3 | The directional light vector used for shading. Defaults to a top-left-front direction. | - | 3d/src/core/context.ts:157 |
lightMode? | LightMode | Whether the light is fixed in world space or follows the camera. Defaults to 'world'. | - | 3d/src/core/context.ts:159 |
lights? | Light[] | The lights illuminating the scene, replacing the default ambient-plus-directional rig. Supplying this detaches Context3D.lightDirection and Context3D.lightMode, which exist to drive that default rig. | - | 3d/src/core/context.ts:166 |
meta? | Context3DMeta | Arbitrary metadata attached to the context. | ContextOptions.meta | core/src/context/types.ts:156 |
near? | number | The distance to the near clipping plane. Defaults to 0.1. | - | 3d/src/core/context.ts:153 |