| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Codec.GlTF.Node
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.
Constructors
| Node | |
Fields
| |
Instances
newtype NodeMatrix Source #
A floating-point 4x4 transformation matrix stored in column-major order.
Constructors
| NodeMatrix | |
Fields | |
Instances
Joints and matrices defining a skin.
Constructors
| Skin | |
Fields
| |
Instances
| Eq Skin Source # | |
| Show Skin Source # | |
| Generic Skin Source # | |
| ToJSON Skin Source # | |
Defined in Codec.GlTF.Node | |
| FromJSON Skin Source # | |
| type Rep Skin Source # | |
Defined in Codec.GlTF.Node type Rep Skin = D1 (MetaData "Skin" "Codec.GlTF.Node" "gltf-codec-0.1.0.1-Gz344sJMz9cG5YV9y1ntpC" False) (C1 (MetaCons "Skin" PrefixI True) ((S1 (MetaSel (Just "joints") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Vector NodeIx)) :*: (S1 (MetaSel (Just "skeleton") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe NodeIx)) :*: S1 (MetaSel (Just "inverseBindMatrices") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe AccessorIx)))) :*: (S1 (MetaSel (Just "name") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "extensions") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe Object)) :*: S1 (MetaSel (Just "extras") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 (Maybe Value)))))) | |