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

Add support for texture atlases #89

Open ianmackenzie opened 4 years ago

ianmackenzie commented 4 years ago

Generally make it easier to construct things like quads that refer to a particular subsection of a texture...this has come up a couple times already on the Elm Slack and could be done in a few different ways:

The latter is probably nicer (figuring out what sections of a texture atlas correspond to different objects does seem like more of a concern of the texture than the objects) but will require a bit more thought to figure out how it should work.