ianmackenzie / elm-3d-scene

A high-level 3D rendering engine for Elm, with support for lighting, shadows, and realistic materials.
https://package.elm-lang.org/packages/ianmackenzie/elm-3d-scene/latest/
Mozilla Public License 2.0
207 stars 27 forks source link

Allow creating meshes with per-vertex colors? #102

Open ianmackenzie opened 3 years ago

ianmackenzie commented 3 years ago

Convenient in some cases, such as meshes containing triangles of different colors. Could probably restrict to solid-color (unlit) meshes, or maybe also Lambertian...have a couple specialized mesh types that contain color as a vertex attribute.