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

Dynamic branch shaders/shader graphs with less variants. #703

Open
atteneder opened this issue Jul 9, 2024 · 1 comment
Open

Dynamic branch shaders/shader graphs with less variants. #703

atteneder opened this issue Jul 9, 2024 · 1 comment
Labels
enhancement New feature or request import Import of glTF files material material/shader features
Milestone

Comments

@atteneder
Copy link
Owner

The current glTFast shader (graphs) have many shader keywords that are used to enable or disable certain material features (e.g. emission). While this improves runtime complexity and thus increases performance, it creates a large number of shader variants.

Another way to solve this problem is to use dynamic branching instead of keywords. While such a shader may perform worse at runtime, it would have a lot less variants.

This is especially useful if it's unknown upfront which glTF material features/extension will be used (e.g. a generic glTF viewer).

This wouldn't be a complete replacement for the existing shaders, but an alternative.

@atteneder atteneder added enhancement New feature or request material material/shader features import Import of glTF files labels Jul 9, 2024
@gkiernozek
Copy link

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request import Import of glTF files material material/shader features
Projects
Status: Planned
Development

No branches or pull requests

2 participants