You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Merge pull request #51821 from Calinou/builtin-shaders-add-comments
Add comments at the top of each built-in shader to ease debugging
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user