Skip to content

Documentation / @ripl/webgpu / WebGPUContextOptions

Interface: WebGPUContextOptions

Defined in: webgpu/src/context.ts:42

Options for constructing a WebGPU 3D context.

Extends

Properties

PropertyTypeDescriptionInherited fromDefined in
clearColor?[number, number, number, number]RGBA clear color (0–1 per channel) applied at the start of each frame. Defaults to transparent.-webgpu/src/context.ts:46
dragThreshold?numberMinimum pointer movement, in pixels, before a drag gesture is recognised.Context3DOptions.dragThresholdcore/src/context/types.ts:134
far?numberThe distance to the far clipping plane. Defaults to 1000.Context3DOptions.far3d/src/core/context.ts:96
fov?numberThe vertical field of view in degrees. Defaults to 60.Context3DOptions.fov3d/src/core/context.ts:92
interactive?booleanWhether the context listens for and emits pointer and drag events.Context3DOptions.interactivecore/src/context/types.ts:132
lightDirection?Vector3The directional light vector used for shading. Defaults to a top-left-front direction.Context3DOptions.lightDirection3d/src/core/context.ts:98
lightMode?LightModeWhether the light is fixed in world space or follows the camera. Defaults to 'world'.Context3DOptions.lightMode3d/src/core/context.ts:100
meta?Context3DMetaArbitrary metadata attached to the context.Context3DOptions.metacore/src/context/types.ts:136
near?numberThe distance to the near clipping plane. Defaults to 0.1.Context3DOptions.near3d/src/core/context.ts:94
sampleCount?numberMSAA sample count for the render pipeline. Defaults to 4.-webgpu/src/context.ts:44