OptionalcanvasId: stringOptionalsceneSize: numberOptionalbackgroundColor: stringOptionalenableShadows: booleanOptionalenableGround: booleanOptionalgroundCenter: Point3OptionalgroundScaleFactor: numberOptionalgroundColor: stringOptionalgroundOpacity: numberOptionalhemisphereLightSkyColor: stringOptionalhemisphereLightGroundColor: stringOptionalhemisphereLightIntensity: numberOptionaldirectionalLightColor: stringOptionaldirectionalLightIntensity: numberOptionalshadowMapSize: numberOptionalcanvasThe ID of the canvas element to render to. If not provided, a new canvas will be created and appended to document.body.
The 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).
Brightness of the soft light from above and below, 1 being full strength
Color of the directional light (sun light).
Brightness of the sun-like light that casts the shadows, 1 being full strength
Size of the shadow map in pixels (higher = sharper shadows but more GPU intensive).
Enable automatic creation of an arc rotate camera.
OptionalarcSettings for the orbiting camera, the same as babylon.camera.arcRotate.create takes;
left out, defaults sized from sceneSize are used
Feeds the
initBabylonJShelper that sets up a whole scene in one call: the canvas, background, ground, lights, shadows and the default orbiting camera, sized fromsceneSize.