OptionalcanvasId: stringOptionalsceneSize: numberOptionalbackgroundColor: stringOptionalenableShadows: booleanOptionalenableGround: booleanOptionalgroundCenter: Point3OptionalgroundScaleFactor: numberOptionalgroundColor: stringOptionalgroundOpacity: numberOptionalhemisphereLightSkyColor: stringOptionalhemisphereLightGroundColor: stringOptionalhemisphereLightIntensity: numberOptionaldirectionalLightColor: stringOptionaldirectionalLightIntensity: numberOptionalshadowMapSize: numberOptionalcanvasThe size of the scene in world units. This determines ground size, light positions, and shadow bounds.
Background color of the scene in hex format.
Enable shadow mapping for realistic shadows.
Enable the ground plane.
Center position of the ground plane [x, y, z].
Scale factor for the ground size relative to scene size. Values greater than 1 make the ground larger than the scene size.
Color of the ground plane in hex format.
Opacity of the ground plane (0 = fully transparent, 1 = fully opaque).
Sky color for the hemisphere light (illumination from above).
Ground color for the hemisphere light (illumination from below).
Intensity of the hemisphere light.
Color of the directional light (sun light).
Intensity of the directional light.
Size of the shadow map in pixels (higher = sharper shadows but more GPU intensive).
Enable automatic creation of an arc rotate camera.
OptionalarcOptions for the arc rotate camera. Only used if enableArcRotateCamera is true. If not provided, scene-aware defaults will be computed based on sceneSize. Uses the same DTO as the standalone arc rotate camera creation.
The ID of the canvas element to render to. If not provided, a new canvas will be created and appended to document.body.