-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
Include functions for converting to and from hsb in shaders #18920
Comments
It's pretty easy to google for one of these. Don't know why they'd need a built-in except for convenience when you're creating a lot of shaders. It might be easier to have |
Another use case would be to randomize between certain saturation and brightness values, you could set the shader params with a script and easily convert them to rgb without any extra work. Though there's no other built in functions for converting (CYMK or LAB), so I can see why these might not be included by default. How would you go about importing functions? That would be super handy, because I do plan on using the functions in more than one shader. |
There is a PR for adding #include and #ifdef support: #17797 |
I think that would be a better alternative to this request! |
|
@bojidar-bg It is already existing in visual shaders ) |
Feature and improvement proposals for the Godot Engine are now being discussed and reviewed in a dedicated Godot Improvement Proposals (GIP) (godotengine/godot-proposals) issue tracker. The GIP tracker has a detailed issue template designed so that proposals include all the relevant information to start a productive discussion and help the community assess the validity of the proposal for the engine. The main (godotengine/godot) tracker is now solely dedicated to bug reports and Pull Requests, enabling contributors to have a better focus on bug fixing work. Therefore, we are now closing all older feature proposals on the main issue tracker. If you are interested in this feature proposal, please open a new proposal on the GIP tracker following the given issue template (after checking that it doesn't exist already). Be sure to reference this closed issue if it includes any relevant discussion (which you are also encouraged to summarize in the new proposal). Thanks in advance! |
Godot version:
3.0.2 stable official
OS/device including version:
Windows 10
I think it would be super handy to have functions to go to and from hsb vectors as built in functions in the shader language. Like the following (from book of shaders):
It would allow really easy hue-shift shaders, like this one I just made:
Thoughts?
The text was updated successfully, but these errors were encountered: