Crate gltf_utils [] [src]

This crate provides utility methods in addition to core gltf, such as accessor iterators and easy conversions between different representations of accessor items.

Modules

casts

This module provides casting iterators for certain types of accessors.

Structs

AccessorIter

Visits the items in an Accessor.

Enums

Colors

Vertex colors.

Indices

Index data.

Joints

Vertex joints.

MorphWeights

Morph-target weight animations.

Outputs

Animation output sampler values.

Rotations

Rotation animations

Select

Purpose of data in an animation channel,

TexCoords

UV texture co-ordinates.

Weights

Weights.

Traits

AccessorItem

Any type that can appear in an Accessor.

AnimationChannelIterators

Extra methods for working with gltf::animation::Channel.

ChannelIterators

Extra methods for working with gltf::animation::Channel.

PrimitiveIterators

Extra methods for working with gltf::Primitive.

SkinIterators

Extra methods for working with gltf::Skin.

Source

Represents sources of buffer data.

Type Definitions

Inputs

Animation input sampler values of type f32.

InverseBindMatrices

Inverse Bind Matrices of type [[f32; 4]; 4].

Normals

XYZ vertex normals of type [f32; 3].

Positions

XYZ vertex positions of type [f32; 3].

Scales

Animation XYZ scales of type [f32; 3].

Tangents

XYZW vertex tangents of type [f32; 4] where the w component is a sign value (-1 or +1) indicating the handedness of the tangent basis.

Translations

Animation XYZ translations of type [f32; 3].