OptionalasyncOptionalcast(glTF/GLB only) give every mesh in the scene a ground shadow; omit to inherit the application's castGroundShadow setting (on by default)
Optionalcollision(LDtk only) the IntGrid layers whose cells are solid, by their identifier; by default the ones whose identifier contains "collision"
Optionalcontainercontainer in which to load the specified level
Optionalcrossfade(glTF/GLB only) for an animated or skinned asset, the default crossfade between its clips, in milliseconds (GLTFModel#crossfade)
Optionalflatten(tile maps: "tmx", "tilemap", "spritefusion") if true, flatten all objects into the given container
Optionallevels(LDtk only, loading a whole world) the levels to start with, by their identifier; by default every level
Optionallight(glTF/GLB only) multiply each light's authored physical intensity by this factor instead of normalizing it to 1
Optionallights(glTF/GLB only) add the scene's authored KHR_lights_punctual lights (plus a soft ambient fill) as Light3d world children
Optionalobjects(tile maps and LDtk) build the objects the level places: all of them, none, or the ones a function says, given each object's settings as its class would be ((settings) => !taken.has(settings.id) leaves out what the player took)
Optionaloncallback for when the level is fully loaded, called in both forms
Optionaloutline(glTF/GLB only) the outline colour (Mesh#outlineColor)
Optionaloutline(glTF/GLB only) what outlineWidth is measured in, world units or "screen" pixels (Mesh#outlineMode)
Optionaloutline(glTF/GLB only) outline every mesh this many world units wide (Mesh#outlineWidth)
Optionalpickable(glTF/GLB only) set false to have Camera3d#pick pass over the scene's meshes (Mesh#pickable)
Optionalright(glTF/GLB only) convert the right-handed (Y-up) source to the engine's Y-down via a rotation rather than a mirror
Optionalrim(glTF/GLB only) the rim light's colour (Mesh#rimColor)
Optionalrim(glTF/GLB only) a rim light on every lit mesh, this strong (Mesh#rimLight)
Optionalscale(glTF/GLB only) pixels per glTF unit applied to the whole scene
Optionalset(tile maps and LDtk) if true, set the viewport bounds to the map size
Optionalshadow(glTF/GLB only) x of the ground direction they are cast along
Optionalshadow(glTF/GLB only) z of that direction
Optionalshadow(glTF/GLB only) up normal of the floor, for a scene that is not level
Optionalshadow(glTF/GLB only) world Y the ground shadows land on
Optionalshadow(glTF/GLB only) a Light3d to take the shadow direction from, re-read every draw
Optionalshadow(glTF/GLB only) how far to slide them along the light, in blob radii (Mesh#shadowOffset)
Optionalshadow(glTF/GLB only) how dark the blobs are (Mesh#shadowOpacity)
Optionalshadow(glTF/GLB only) blob footprint multiplier (Mesh#shadowScale)
Optionalshadow(glTF/GLB only) how much longer they are along it (Mesh#shadowStretch)
Optionalshow(LDtk only) draw the IntGrid layers that have no tiles of their own, each value in its LDtk color
Optionalsolid(LDtk only) the values of those layers that are solid; by default every value but 0
Optionaltoon(glTF/GLB only) cel-shade every lit mesh into this many bands (Mesh#toonBands)
return a promise that settles once the level is in the world, instead of a boolean