Optionalnodes: Node[]OptionaldiscardSkyboxAndGrid: booleanOptionalcompressWithDraco: booleanOptionalunit: unitOfLengthEnumOptionalnodesThe nodes to write; every ancestor of a chosen node is written too so it keeps its place, and when omitted the whole scene is written
OptionaldiscardWhen true, the skybox and ground meshes this library adds are left out of the file
OptionalcompressWhen true, the mesh geometry is compressed with Draco, which makes the file smaller and slower to open
OptionalunitThe unit the scene is modelled in. Given, the file is in metres, glTF's unit, through one scaled root node; left out, the numbers are written as they are.
Feeds
babylon.io.exportGLBByteswith the nodes to write, whether to leave out the skybox and ground this library adds, and whether to compress the meshes with Draco.