OptionalbackgroundRGBA background, each channel in [0, 1]. Default: (0, 0, 0, 1).
OptionalcameraEnd camera position for motion blur. When set, enables camera
motion blur: the renderer averages motionSamples sub-frames
with the camera interpolated from (cameraPosition, lookAt,
up) at shutter-open to (cameraEndPosition, lookAtEnd,
upEnd) at shutter-close.
OptionalcameraCamera position in world space. Default: (2, 1, -2).
OptionalcreateFunction returning a GraphicsDevice. Required — rasterization runs on GPU.
Gaussian splat data to render.
Output filename ending in .webp.
OptionalfocusCamera-space Z of the focus plane in world units. Defaults to the
distance from cameraPosition to lookAt along the forward axis
(i.e. focus on the look-at point) when fStop is set. Has no
effect without fStop. Pinhole only — passing this with
projection: 'equirect' is an error.
OptionalfovVertical field of view in degrees. Default: 60 for pinhole. Must be omitted for equirect (throws if supplied).
OptionalfAperture as a photographic f-stop (e.g. 2.8, 5.6, 11). Enables
defocus blur / depth-of-field: smaller numbers = stronger blur.
Defaults to disabled. Pinhole only — passing this with
projection: 'equirect' is an error.
OptionalheightOutput image height in pixels. Default: 720 (pinhole) or 1024 (equirect).
OptionallookPoint the camera looks at, in world space. Default: (0, 0, 0).
OptionallookEnd look-at target for motion blur. Defaults to lookAt when
motion blur is enabled.
OptionalmotionNumber of sub-frames to accumulate for motion blur. Cost is N×
a single render. Default: 16. Only meaningful with
cameraEndPosition.
OptionalnearNear clip distance in world units. Splats with camera-space depth <= near are culled. Default: 0.2 (matches the reference 3DGS rasterizer).
OptionalprojectionCamera projection mode. Default: 'pinhole'.
'pinhole' — perspective camera using fov.'equirect' — full 360° × 180° equirectangular panorama from
cameraPosition. Ignores fov. Requires width === 2 × height;
default resolution is 2048 × 1024.OptionalsensorVertical sensor height in world units, used to give fStop a
defined physical meaning. Default 0.024 matches a 35mm
full-frame sensor when world units are meters. Scale this with
your scene's units (e.g. world unit = decimeter → 0.24, world
unit = millimeter → 24). Has no effect without fStop.
OptionalshutterShutter fraction in [0, 1]. Portion of the start→end segment
actually integrated, centered on the midpoint (standard
shutter-angle convention: 1.0 = full motion, 0.5 = 180° shutter).
Default: 1. Only meaningful with cameraEndPosition.
OptionalupWorld-space up vector. Default: (0, 1, 0).
OptionalupEnd up vector for motion blur. Defaults to up when motion blur
is enabled.
OptionalwidthOutput image width in pixels. Default: 1280 (pinhole) or 2048 (equirect).
Options for writing a rendered splat image.