Safe Haskell | Safe-Infered |
---|
- type Scene = Tree (SID, Node)
- data Node = Node {
- nodeId :: Maybe ID
- nodeLayers :: [String]
- nodeTransformations :: [(SID, Transform)]
- nodeCameras :: [(SID, Camera)]
- nodeLights :: [(SID, Light)]
- nodeGeometries :: [(SID, Geometry)]
- nodeMat :: Node -> Mat44 Float
- nodeAABB :: Node -> AABB
- data Transform
- transformMat :: Transform -> Mat44 Float
- transformsMat :: [Transform] -> Mat44 Float
- data Camera
- = Perspective { }
- | Orthographic { }
- cameraMat :: Float -> Camera -> Mat44 Float
- data ViewSize
- data Z = Z {}
- data Light
- = Ambient { }
- | Directional { }
- | Point { }
- | Spot { }
- data Attenuation = Attenuation {}
- data Geometry = Mesh {
- meshID :: ID
- meshPrimitives :: [Mesh]
- data Mesh = TriangleMesh {}
- type ID = String
- type SID = Maybe String
- type Semantic = String
- data AABB = AABB {}
Documentation
Node | |
|
nodeMat :: Node -> Mat44 FloatSource
The complete transform matrix of all Transform
elements in a node.
transformMat :: Transform -> Mat44 FloatSource
Gets the transformation matrix of a Transform
element.
transformsMat :: [Transform] -> Mat44 FloatSource
Gets the total transformation matrix of a list of Transform
element.
data Attenuation Source