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

Changing shader macro from feature settings #29

Open
Pentalimbed opened this issue Jul 21, 2023 · 1 comment
Open

Changing shader macro from feature settings #29

Pentalimbed opened this issue Jul 21, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Pentalimbed
Copy link
Collaborator

Akin to static switching in UE4, and preprocessor definitions from ReShade, allowing features to def or undef macros for specific shaders and recompile on the fly. Better performance, as opposed to having dynamic branches in shader code.

@alandtse
Copy link
Collaborator

alandtse commented Aug 29, 2023

There is some progress toward this with the ability to set global defines in Advanced. Some things to add.

  • Compute shader reloading.
  • Framework to selectively define shaders based on types (lighting)
  • Framework for define configuration from features

@alandtse alandtse added the enhancement New feature or request label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants