Documentation ¶
Index ¶
- type Accessor
- type AnimSampler
- type Animation
- type Buffer
- type BufferView
- type Camera
- type Channel
- type ColorTexture
- type DSLTF
- type Image
- type Material
- type Mesh
- type Node
- type OrthCamera
- type PbrMetallicRough
- type PersCamera
- type Primitive
- type Sampler
- type Scene
- type Skin
- type TargetAnim
- type TextureDescriptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accessor ¶
type Accessor struct { BufferView uint32 ByteOffset uint32 Type string ComponentType uint32 Count uint32 Min []float32 Max []float32 }
Accessor should be immutable to the GLTF asset
type AnimSampler ¶
type Animation ¶
type Animation struct { Channels []Channel Samplers []AnimSampler }
type BufferView ¶
type Camera ¶
type Camera struct { Type string Perpective PersCamera Orthographic OrthCamera }
type Channel ¶
type Channel struct {
Target []TargetAnim
}
type ColorTexture ¶
type DSLTF ¶
type DSLTF struct { Scenes []Scene Nodes []Node Cameras []Camera Meshes []Mesh Buffers []Buffer BufferView []BufferView Material []Material Textures []TextureDescriptor Images []Image Sampler []Sampler Skins []Skin Animations []Animation MasterBuffer []byte }
DSLTF Main Root Node
type Material ¶
type Material struct {
PbrMetallicRoughness PbrMetallicRough
}
type Node ¶
type Node struct { Name string Mesh uint32 Camera uint32 Skin uint32 Matrix []float32 Translation []float32 Rotation []float32 Scale []float32 Children []uint32 }
Scenes
type PbrMetallicRough ¶
type PbrMetallicRough struct { BaseColorTexture ColorTexture BaseColorFactor []float32 MetallicRoughnessTexture ColorTexture MetallicFactor float32 RoughnessFactor float32 NormalTexture ColorTexture EmissiveTexture ColorTexture OcclusionTexture ColorTexture EmmissiveFactor []float32 }
type PersCamera ¶
type Skin ¶
type Skin struct { InverseBindMatrices uint32 //Accessor whic references Joint Matrices buffers Joints []uint32 }
SKINS and Animations
type TargetAnim ¶
Click to show internal directories.
Click to hide internal directories.