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.
OptionalsceneThe size of the scene in world units. This determines ground size, light positions, and shadow bounds.
OptionalbackgroundBackground color of the scene in hex format.
OptionalenableEnable shadow mapping for realistic shadows.
OptionalenableEnable the ground plane.
OptionalgroundCenter position of the ground plane [x, y, z].
OptionalgroundScale factor for the ground size relative to scene size. Values greater than 1 make the ground larger than the scene size.
OptionalgroundColor of the ground plane in hex format.
OptionalgroundOpacity of the ground plane (0 = fully transparent, 1 = fully opaque).
OptionalhemisphereSky color for the hemisphere light (illumination from above).
OptionalhemisphereGround color for the hemisphere light (illumination from below).
OptionalhemisphereBrightness of the soft light from above and below, 1 being full strength
OptionaldirectionalColor of the directional light (sun light).
OptionaldirectionalBrightness of the sun-like light that casts the shadows, 1 being full strength
OptionalshadowSize of the shadow map in pixels (higher = sharper shadows but more GPU intensive).
OptionalenableEnable 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.