-
-
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
Add documentation for hint_enum
uniform in shading_language.rst
#9841
Conversation
hint_enum
uniform in shading_language.rsthint_enum
uniform in shading_language.rst
Should i rebase? i seem to have committed each requested change as separate commits, also, for future reference, how can i make all requested changes in a single commit? Thank you for your guidance AThousandShips, i really appreciate it! |
Squashing the commits would be appreciated |
Added explanation regarding ``hint_enum`` behaviour and usage in Uniforms section. Also added a row in the Uniforms section table to reflect this new hint type This PR is documentation regarding : godotengine/godot#94324
Co-authored-by: A Thousand Ships <[email protected]>
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.
Documentation is correct. Style looks fine.
I tested this in 4.4dev4 Compatibility with this shader, and it works as expected:
shader_type spatial;
uniform int noise_type : hint_enum("OpenSimplex2", "Cellular", "Perlin", "Value") = 0;
uniform int character_speed: hint_enum("Slow:30", "Average:60", "Very Fast:200") = 60;
void vertex() {}
void fragment() {
ALBEDO = vec3(float(noise_type)/4.0);
ALBEDO = vec3(float(character_speed)/200.0);
}
Thanks! And congratulations on your first merged docs pull request! |
Thank you ❤️❤️🥹 |
Added explanation regarding
hint_enum
behaviour and usage in Uniforms section. Also added a row in the Uniforms section table to reflect this new hint typeThis PR is documentation regarding : godotengine/godot#94324