diff options
author | JFonS <JFonS@users.noreply.github.com> | 2021-08-25 11:37:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 11:37:57 +0200 |
commit | c334989e003d8692cf00acb8f16a19a3bf9bc0d0 (patch) | |
tree | 47bd11e1431de573ab85999e0813fd48571500a7 /scene/gui | |
parent | bb0122c9331e7cb56d358ab427329a267b387969 (diff) | |
parent | a139e58f8c804d97ecff57b24911840305510687 (diff) |
Merge pull request #51821 from Calinou/builtin-shaders-add-comments
Add comments at the top of each built-in shader to ease debugging
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/color_picker.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index 661e0dc648..0dddb2b09a 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -97,6 +97,8 @@ Ref<Shader> ColorPicker::circle_shader; void ColorPicker::init_shaders() { wheel_shader.instantiate(); wheel_shader->set_code(R"( +// ColorPicker wheel shader. + shader_type canvas_item; void fragment() { @@ -119,6 +121,8 @@ void fragment() { circle_shader.instantiate(); circle_shader->set_code(R"( +// ColorPicker circle shader. + shader_type canvas_item; uniform float v = 1.0; |