gltfutil

package
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 AnimationRotations(doc *gltf.Document, sampler *gltf.AnimationSampler) []dprec.Quat

func AnimationScales

func AnimationScales(doc *gltf.Document, sampler *gltf.AnimationSampler) []dprec.Vec3

func AnimationTranslations

func AnimationTranslations(doc *gltf.Document, sampler *gltf.AnimationSampler) []dprec.Vec3

func BaseColor

func BaseColor(pbr *gltf.PBRMetallicRoughness) sprec.Vec4

func BufferViewData

func BufferViewData(doc *gltf.Document, index int) gblob.LittleEndianBlock

func Color0s

func Color0s(doc *gltf.Document, primitive *gltf.Primitive) ([]sprec.Vec4, error)

func ColorTextureIndex

func ColorTextureIndex(doc *gltf.Document, pbr *gltf.PBRMetallicRoughness) *int

func Coords

func Coords(doc *gltf.Document, primitive *gltf.Primitive) ([]sprec.Vec3, error)

func HasAttribute

func HasAttribute(primitive *gltf.Primitive, name string) bool

func Indices

func Indices(doc *gltf.Document, primitive *gltf.Primitive) ([]int, error)

func InverseBindMatrix

func InverseBindMatrix(doc *gltf.Document, skin *gltf.Skin, index int) sprec.Mat4

func IsCollisionDisabled

func IsCollisionDisabled(node *gltf.Node) bool

func IsMeshCollisionDisabled added in v0.10.0

func IsMeshCollisionDisabled(mesh *gltf.Mesh) bool

func Joint0s

func Joint0s(doc *gltf.Document, primitive *gltf.Primitive) ([][4]uint8, error)

func MetallicRoughnessTextureIndex

func MetallicRoughnessTextureIndex(doc *gltf.Document, pbr *gltf.PBRMetallicRoughness) *int

func NormalTextureIndexScale

func NormalTextureIndexScale(doc *gltf.Document, material *gltf.Material) (*int, float32)

func Normals

func Normals(doc *gltf.Document, primitive *gltf.Primitive) ([]sprec.Vec3, error)

func PrimitiveMaterial

func PrimitiveMaterial(doc *gltf.Document, primitive *gltf.Primitive) *gltf.Material

func Properties added in v0.10.0

func Properties(extras any) map[string]string

func RootNodeIndices

func RootNodeIndices(doc *gltf.Document) []int

func Tangents

func Tangents(doc *gltf.Document, primitive *gltf.Primitive) ([]sprec.Vec3, error)

func TexCoord0s

func TexCoord0s(doc *gltf.Document, primitive *gltf.Primitive) ([]sprec.Vec2, error)

func Weight0s

func Weight0s(doc *gltf.Document, primitive *gltf.Primitive) ([]sprec.Vec4, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL