Added editor dialog for easily creating shaders. - #51356
Conversation
8d306fc to
b65b6f8
Compare
ebbb54d to
29cfa0d
Compare
|
There should be an option for built-in shaders. |
|
In the long run, we may want to rename the Shader resource to TextShader to distinguish it from VisualShader. Right now, it's not obvious from the name alone that Shader is for text-based shaders. |
@KoBeWi Done
Yeah, but it's not a subject for this PR... |
I've removed it in the last commit. Check again. |
bea2877 to
1e28737
Compare
44ed73e to
9b37dfa
Compare
f7c307b to
bd74aa0
Compare
6032d06 to
ce130d0
Compare
|
Removed almost all comments outside the constructor. ^^ |
|
Looks great now! The last thing to fix is the file path in the dialog: Using Also |
|
@KoBeWi Well, I think I'm done with it, check again. |
|
Ok, let this be, hope users would like it as I did 😃 |

Added a dialog similar to GDScript but for the shaders instead.
Languageoptions is to select betweenShaderandVisualShader.Mode options are
Spatial,CanvasItem,ParticlesandSky.Template options may be
Default(which adds some code for functions) andEmpty(shader_mode is defined only).Demo GIF
This will helps new users to better engage with the shaders + it speeds up the creation of shaders by allowing adding some template code afterward.
Bugsquad edit: Closes #20152