aboutsummaryrefslogtreecommitdiff
path: root/client/gui/resources/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'client/gui/resources/shaders')
-rw-r--r--client/gui/resources/shaders/blur_mix.gdshader3
-rw-r--r--client/gui/resources/shaders/clouds_canvas_item.gdshader35
-rw-r--r--client/gui/resources/shaders/clouds_canvas_item.gdshader.uid1
-rw-r--r--client/gui/resources/shaders/grayscale.gdshader2
-rw-r--r--client/gui/resources/shaders/paper.tres2
-rw-r--r--client/gui/resources/shaders/printed.gdshader2
6 files changed, 41 insertions, 4 deletions
diff --git a/client/gui/resources/shaders/blur_mix.gdshader b/client/gui/resources/shaders/blur_mix.gdshader
index 97686a54..fc29603f 100644
--- a/client/gui/resources/shaders/blur_mix.gdshader
+++ b/client/gui/resources/shaders/blur_mix.gdshader
@@ -1,6 +1,6 @@
/*
Hurry Curry! - a game about cooking
- Copyright (C) 2025 Hurry Curry! Contributors
+ Copyright (C) 2026 Hurry Curry! Contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
@@ -27,6 +27,7 @@ uniform bool enable_blur;
void fragment() {
if (enable_blur) {
vec4 blurred = textureLod(SCREEN_TEXTURE, SCREEN_UV, blur_amount);
+ blurred.a = 1.;
COLOR = mix(blurred, color_over, mix_amount);
} else {
COLOR = mix(texture(SCREEN_TEXTURE, SCREEN_UV), color_over, mix_amount_no_blur);
diff --git a/client/gui/resources/shaders/clouds_canvas_item.gdshader b/client/gui/resources/shaders/clouds_canvas_item.gdshader
new file mode 100644
index 00000000..b5868b74
--- /dev/null
+++ b/client/gui/resources/shaders/clouds_canvas_item.gdshader
@@ -0,0 +1,35 @@
+/*
+ Hurry Curry! - a game about cooking
+ Copyright (C) 2026 Hurry Curry! Contributors
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published by
+ the Free Software Foundation, version 3 of the License only.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+*/
+shader_type canvas_item;
+
+uniform sampler2D noise : source_color, repeat_enable;
+uniform vec4 ccloud : source_color;
+uniform vec4 csky : source_color;
+
+void fragment() {
+ vec2 uv = UV * 0.9;
+ uv += TIME * vec2(0.01,0.02);
+
+ float f = texture(noise, uv).x;
+ f = 1. - f;
+ f = pow(f, 1.5);
+ f = floor(f*5.)/5.;
+ f = pow(f, 2.);
+
+ COLOR = mix(csky, ccloud, f);
+}
diff --git a/client/gui/resources/shaders/clouds_canvas_item.gdshader.uid b/client/gui/resources/shaders/clouds_canvas_item.gdshader.uid
new file mode 100644
index 00000000..1b5ea7f0
--- /dev/null
+++ b/client/gui/resources/shaders/clouds_canvas_item.gdshader.uid
@@ -0,0 +1 @@
+uid://b7p7umdb51hhn
diff --git a/client/gui/resources/shaders/grayscale.gdshader b/client/gui/resources/shaders/grayscale.gdshader
index c058e7bf..61ae539c 100644
--- a/client/gui/resources/shaders/grayscale.gdshader
+++ b/client/gui/resources/shaders/grayscale.gdshader
@@ -1,6 +1,6 @@
/*
Hurry Curry! - a game about cooking
- Copyright (C) 2025 Hurry Curry! Contributors
+ Copyright (C) 2026 Hurry Curry! Contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
diff --git a/client/gui/resources/shaders/paper.tres b/client/gui/resources/shaders/paper.tres
index f99aec03..c2102a14 100644
--- a/client/gui/resources/shaders/paper.tres
+++ b/client/gui/resources/shaders/paper.tres
@@ -1,4 +1,4 @@
-[gd_resource type="NoiseTexture2D" load_steps=3 format=3 uid="uid://chxkwohi56cxx"]
+[gd_resource type="NoiseTexture2D" format=3 uid="uid://chxkwohi56cxx"]
[sub_resource type="Gradient" id="Gradient_pkrjd"]
colors = PackedColorArray(0.917969, 0.866454, 0.770122, 1, 0.832031, 0.781817, 0.666307, 1)
diff --git a/client/gui/resources/shaders/printed.gdshader b/client/gui/resources/shaders/printed.gdshader
index c24cb679..adcabb7b 100644
--- a/client/gui/resources/shaders/printed.gdshader
+++ b/client/gui/resources/shaders/printed.gdshader
@@ -1,6 +1,6 @@
/*
Hurry Curry! - a game about cooking
- Copyright (C) 2025 Hurry Curry! Contributors
+ Copyright (C) 2026 Hurry Curry! Contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by