class FoxGLTFLoader
package foxlite.loaders
Static methods
staticload(name:String, ?extraShaderFlags:Array<String>, ?customShaderPath:String):GLTFData
Loads models, animations and lights from a .gltf file, this also includes the .bin buffers and textures.
GLTF models are scenes, this means they have an unique structure models should follow.
You can use the meshes array, but all meshes will be positioned at the origin. Instead, use the scenes property.
This contains parsed FoxObjectGroups containing the respective objects with
their respective parent, skin data, animations and so on
Note: Cache is applied only to foxlite resources such as textures, materials and so on. The gltf aswell as its binary buffers will be loaded every time you call this function to refresh the cache if something is missing.
staticloadBinary(name:String, ?extraShaderFlags:Array<String>, ?customShaderPath:String):GLTFData
Loads models, animations and lights from a GLTF binary file .glb. This method is identical to load()
Note: Cache is applied only to foxlite resources such as textures, materials and so on. The gltf aswell as its binary buffers will be loaded every time you call this function to refresh the cache if something is missing.
staticbuildScenes(gltf:GLTFData):Array<FoxObjectGroup>
Builds FoxObjectGroups containing models, meshes and lights from GLTF data