lambdacube-engine-0.2.4: 3D rendering engine written entirely in Haskell

Safe HaskellSafe-Infered

Graphics.LambdaCube.MeshUtil

Description

Functions for combining meshes.

Synopsis

Documentation

mkVMesh :: [(U, Vec3, VMesh)] -> VMeshSource

Build a single mesh that represents the union of a list of transformed meshes (given the orientation and translation for each constituent). The resulting mesh is optimised with respect to context switches during rendering.

mkVMesh' :: [(Proj4, VMesh)] -> VMeshSource

Build a single mesh that represents the union of a list of transformed meshes (given the transformation matrix for each constituent). The resulting mesh is optimised with respect to context switches during rendering.