summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorJoosep Jääger <joosep.jaager@gmail.com>2021-05-19 15:12:55 +0300
committerJoosep Jääger <joosep.jaager@gmail.com>2021-05-25 12:15:08 +0300
commit16567321ba49fbba13c79c5613166f6793481e3a (patch)
tree66751d60da7d8d1a5533167e2e971ae7197e3f9c /scene/gui
parentd0aaf4a1fd9e9943436ab6255a6d52257a794ce6 (diff)
Added constants PI, TAU and E to the shader language
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/color_picker.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp
index 9ccb2886e1..c0b4563615 100644
--- a/scene/gui/color_picker.cpp
+++ b/scene/gui/color_picker.cpp
@@ -91,7 +91,6 @@ void ColorPicker::init_shaders() {
wheel_shader.instance();
wheel_shader->set_code(
"shader_type canvas_item;"
- "const float TAU = 6.28318530718;"
"void fragment() {"
" float x = UV.x - 0.5;"
" float y = UV.y - 0.5;"
@@ -111,7 +110,6 @@ void ColorPicker::init_shaders() {
circle_shader.instance();
circle_shader->set_code(
"shader_type canvas_item;"
- "const float TAU = 6.28318530718;"
"uniform float v = 1.0;"
"void fragment() {"
" float x = UV.x - 0.5;"