Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for texture atlases #89

Open
ianmackenzie opened this issue Sep 17, 2020 · 0 comments
Open

Add support for texture atlases #89

ianmackenzie opened this issue Sep 17, 2020 · 0 comments
Assignees

Comments

@ianmackenzie
Copy link
Owner

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:

  • Have a version of Scene3d.quad (Scene3d.sprite maybe?) that allows specifying a custom UV range
  • Have a way to create a Material value from a section of a texture so that mesh UV coordinates can still range from 0 to 1 but will end up referring to a subsection of a texture

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.

@ianmackenzie ianmackenzie self-assigned this Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant