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
205 stars 27 forks source link

Support indexed meshes with more than 65536 vertices #91

Open ianmackenzie opened 4 years ago

ianmackenzie commented 4 years ago

WebGL currently only supports indexed meshes with up to 65536 vertices since the indices used are 16 bit integers. It should be possible for elm-3d-scene to break meshes up into smaller individual WebGL meshes on construction to get around this limitation, at the cost of some extra draw calls.