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

feat(model): add full shader selection logic to batches #68

Merged

Conversation

fallenoak
Copy link
Member

This PR introduces the necessary logic to correctly identify shaders for M2Batch entries in loaded models. To match the actual game client, a number of routines to determine "simple" and "specialized" shaders have been introduced. New enums have been added to represent shader information for interested users of @wowserhq/format: M2_VERTEX_SHADER and M2_FRAGMENT_SHADER, both exported from the library root.

@fallenoak fallenoak merged commit 7725533 into main Jan 22, 2024
3 checks passed
@fallenoak fallenoak deleted the feat-model-add-full-shader-selection-logic-to-batches branch January 22, 2024 04:53
@github-actions github-actions bot mentioned this pull request Jan 22, 2024
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

Successfully merging this pull request may close these issues.

1 participant