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 Shader handles #14

Open
ikeycode opened this issue Mar 6, 2020 · 0 comments
Open

Add Shader handles #14

ikeycode opened this issue Mar 6, 2020 · 0 comments

Comments

@ikeycode
Copy link
Collaborator

ikeycode commented Mar 6, 2020

We need a nice cache for Vertex and Fragment shaders, with double lookups (int key or slow string find)

This will allow us to cache our builtin shaders, as well as allowing the consumer to completely override the shaders. Eventually we'll also want a way to specify custom shader rules for various parts of the codebase,such as in the tiled renderer. i.e. it'd be nice to use a shader to make the
trees 'move', etc.

We'll also want this to be not-ugly, so lets use structs, not classes, and have comparable handles. This will allow us in future to sort through batches if the underlying shader or texture changes. (Read: Material)

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