eobet
July 28, 2024, 11:45am
1
Godot Version
4.3 rc1
Question
Do equivalent nodes to these two very useful functions exist?
eobet
July 28, 2024, 12:09pm
2
Damn, found this for color ramp:
opened 04:28PM - 23 Oct 23 UTC
topic:shaders
### Describe the project you are working on
I'm working on multiple 3D games in… godot 3 and godot 4, [Crafty County](https://craftycounty.com) and [Octahedrone](https://octahedrone.com).
### Describe the problem or limitation you are having in your project
There's one node I'm used to have in blender and that is missing in Godot, a color ramp node. A Color ramp is having a floating number as an input, and have a color as an output based on a the interpolation from a gradient.
Right now I have to use a texture node each time and it works, but it could speed up iterations if the gradient was built in and editable directly in the visual editor.
![image](https://github.com/godotengine/godot-proposals/assets/14089949/7c252ca7-f6eb-4db1-bd19-afcf53d61e9c)
### Describe the feature / enhancement and how it helps to overcome the problem or limitation
The solution could be really close in the back from what I showed in the previous image, but use an UI closer to the one used in Blender.
Here's how it looks in blender
![image](https://github.com/godotengine/godot-proposals/assets/14089949/d1d7416b-64b9-4731-9ff4-729ea7aea594)
### Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
How it would work. A gradient 1D resource could be used and be editable directly from the visual editor. Color selection is already available in nodes like "Color Constant", what's missing is to add the ability to allow for adding, sliding or removing points from the gradient.
### If this enhancement will not be used often, can it be worked around with a few lines of script?
It can be worked around, and I've been doing it for years, but at this point I feel like it could be an easy way to make the visual editor much more efficient and easy to use.
### Is there a reason why this should be core and not an add-on in the asset library?
I don't feel like anyone would go out of their way to have this added from an add-on or the asset library and use it in their shaders. If it was core, I feel like a lot of people would have a use for it.
So nothing yet, but still haven’t found anything similar for float curve…
EDIT: Oh, is this it?
Not really intuitive, though… I got this far on my own but no further. It feels more convoluted and I’m clicking “edit” in the context menu but nothing happens.