-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Improve docs on TIME #3494
Improve docs on TIME #3494
Conversation
| in float **TIME** | Global time, in seconds. | | ||
| | It's subject to the rollover setting (which is 3,600 -1 hour- by default). | | ||
+-----------------------+-----------------------------------------------------------------------------+ | ||
| in vec4 **MODULATE** | Final modulate color. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The way you have defined MODULATE
it is not a global built-in, it is a built in that is available in all three shader functions. Global built-ins are a special type that is accessible everywhere, including custom functions. They are only available in master, and are specified with "global" keyword. see godotengine/godot#37166
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood.
But now I'm confused about master in this repo being for 3.2. Is that no longer true? If that's the case, I guess I can leave the changes to TIME here and move on MODULATE to a separate PR for 3.2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think master in this repo is for 4.0 because there is a separate 3.2 branch. So yea, maybe leave this PR with the time changes and then make another PR with the modulate changes for 3.2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, master
here is for Godot 4.0 now. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR updated to include only the TIME stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, the PR template says that master is fo 3.0. Maybe it needs an update.
Thanks! |
And improve TIME.
(OMG, after two messed up PRs, I've finally been able to do it.)