Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype NodeIx = NodeIx {}
- data Node = Node {
- camera :: Maybe CameraIx
- children :: Maybe (Vector NodeIx)
- skin :: Maybe SkinIx
- matrix :: Maybe NodeMatrix
- mesh :: Maybe MeshIx
- rotation :: Maybe (Float, Float, Float, Float)
- scale :: Maybe (Float, Float, Float)
- translation :: Maybe (Float, Float, Float)
- weights :: Maybe (Vector Float)
- name :: Maybe Text
- extensions :: Maybe Object
- extras :: Maybe Value
- newtype NodeMatrix = NodeMatrix {}
- newtype SkinIx = SkinIx {}
- data Skin = Skin {}
Documentation
A node in the node hierarchy.
When the node contains skin, all mesh.primitives must contain JOINTS_0 and WEIGHTS_0 attributes.
A node can have either a matrix or any combination of translationrotationscale (TRS) properties.
TRS properties are converted to matrices and postmultiplied in the T * R * S order to compose the transformation matrix; first the scale is applied to the vertices, then the rotation, and then the translation. If none are provided, the transform is the identity.
When a node is targeted for animation (referenced by an animation.channel.target), only TRS properties may be present; matrix will not be present.
Node | |
|
Instances
newtype NodeMatrix Source #
A floating-point 4x4 transformation matrix stored in column-major order.
Instances
Joints and matrices defining a skin.
Skin | |
|