-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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 IS_VERTEX and IS_FRAGMENT to shader defines #11050
Conversation
Allows for adding stuff to commons chunk for example. mrdoob#10750
If I remember correctly, you're not supposed to add anything before the |
You are right, I messed something up and added this thing twice. Still good to have per that other discussion? |
Hmm, I cannot think of any specific use case for this right now, but I suspect it is indeed something handy to have. |
It can't be handy if a use-case cannot be identified. :) What is the compelling use-case? |
Cant link to the comment in the review in the other thread. Mrdoob suggested some glsl should be in the commons chunk but it exists in both very and frag. Say you want to add |
Just to make this idea seem less idiotic, it is now becoming more obvious what was the use case for this.
Basically it was supposed to do what |
Using the |
Could you elaborate? |
Actually now having written it like this it's not so much of a problem. I was thinking of something like
It could be like the first super mini step towards the properly named hooks etc. but maybe not worth it. Looking for |
Allows for adding stuff to commons chunk for example.
#10750