Documentation ¶
Index ¶
- func AnimationKeyframes(doc *gltf.Document, sampler *gltf.AnimationSampler) []float64
- func AnimationRotations(doc *gltf.Document, sampler *gltf.AnimationSampler) []dprec.Quat
- func AnimationScales(doc *gltf.Document, sampler *gltf.AnimationSampler) []dprec.Vec3
- func AnimationTranslations(doc *gltf.Document, sampler *gltf.AnimationSampler) []dprec.Vec3
- func BaseColor(pbr *gltf.PBRMetallicRoughness) sprec.Vec4
- func BufferViewData(doc *gltf.Document, index int) gblob.LittleEndianBlock
- func Color0s(doc *gltf.Document, primitive *gltf.Primitive) ([]sprec.Vec4, error)
- func ColorTextureIndex(doc *gltf.Document, pbr *gltf.PBRMetallicRoughness) *int
- func Coords(doc *gltf.Document, primitive *gltf.Primitive) ([]sprec.Vec3, error)
- func HasAttribute(primitive *gltf.Primitive, name string) bool
- func Indices(doc *gltf.Document, primitive *gltf.Primitive) ([]int, error)
- func InverseBindMatrix(doc *gltf.Document, skin *gltf.Skin, index int) sprec.Mat4
- func IsCollisionDisabled(node *gltf.Node) bool
- func IsMeshCollisionDisabled(mesh *gltf.Mesh) bool
- func Joint0s(doc *gltf.Document, primitive *gltf.Primitive) ([][4]uint8, error)
- func MetallicRoughnessTextureIndex(doc *gltf.Document, pbr *gltf.PBRMetallicRoughness) *int
- func NormalTextureIndexScale(doc *gltf.Document, material *gltf.Material) (*int, float32)
- func Normals(doc *gltf.Document, primitive *gltf.Primitive) ([]sprec.Vec3, error)
- func PrimitiveMaterial(doc *gltf.Document, primitive *gltf.Primitive) *gltf.Material
- func Properties(extras any) map[string]string
- func RootNodeIndices(doc *gltf.Document) []int
- func Tangents(doc *gltf.Document, primitive *gltf.Primitive) ([]sprec.Vec3, error)
- func TexCoord0s(doc *gltf.Document, primitive *gltf.Primitive) ([]sprec.Vec2, error)
- func Weight0s(doc *gltf.Document, primitive *gltf.Primitive) ([]sprec.Vec4, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnimationKeyframes ¶
func AnimationKeyframes(doc *gltf.Document, sampler *gltf.AnimationSampler) []float64
func AnimationRotations ¶
func AnimationScales ¶
func AnimationTranslations ¶
func BufferViewData ¶
func BufferViewData(doc *gltf.Document, index int) gblob.LittleEndianBlock
func ColorTextureIndex ¶
func ColorTextureIndex(doc *gltf.Document, pbr *gltf.PBRMetallicRoughness) *int
func InverseBindMatrix ¶
func IsCollisionDisabled ¶
func IsMeshCollisionDisabled ¶ added in v0.10.0
func MetallicRoughnessTextureIndex ¶
func MetallicRoughnessTextureIndex(doc *gltf.Document, pbr *gltf.PBRMetallicRoughness) *int
func NormalTextureIndexScale ¶
func PrimitiveMaterial ¶
func Properties ¶ added in v0.10.0
func RootNodeIndices ¶
func TexCoord0s ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.