Module models

Module models 

Source
Expand description

§glTF Data Model Definitions

This module contains the core data structures that represent a glTF 2.0 document. These structures match the JSON schema defined in the glTF 2.0 specification.

The structures in this module are designed to be serialized to JSON using serde, with optional fields that are skipped when None to produce valid glTF JSON.

Structs§

Accessor
Represents a glTF accessor
Animation
Represents a glTF animation
AnimationChannel
Represents a glTF animation channel
AnimationChannelTarget
Represents a glTF animation channel target
AnimationSampler
Represents a glTF animation sampler
Asset
Represents the glTF asset information
Buffer
Represents a glTF buffer
BufferView
Represents a glTF buffer view
Gltf
Represents a complete glTF 2.0 document
Image
Represents a glTF image
Material
Represents a glTF material
MaterialExtensions
Represents material extensions for glTF
Mesh
Represents a glTF mesh
Node
Represents a glTF node
NormalTextureInfo
Represents normal texture reference information
OcclusionTextureInfo
Represents occlusion texture reference information
PbrMetallicRoughness
Represents a glTF PBR material
PbrSpecularGlossiness
Represents a glTF specular-glossiness PBR material extension
Primitive
Represents a glTF mesh primitive
Sampler
Represents a glTF sampler
Scene
Represents a glTF scene
Texture
Represents a glTF texture
TextureInfo
Represents basic texture reference information