Skip to content
Discussion options

You must be logged in to vote

Alright, I get it now.
In the example I posted I check the Materal Key and only add the shader define, when is_red is true. Otherwise the define is not added at all.

So I should either check via #ifdef if the define exists in the shader code or I should always add this define and only change the value based on the key.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by KirmesBude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant