aboutsummaryrefslogtreecommitdiff
path: root/client/map/progress.gdshader
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-02 00:59:21 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-02 00:59:21 +0200
commit9cffa5019b017045b7dbdf6577c89b70b8a11a50 (patch)
tree2a274bb7a446dc9400731da4b8851aaff6393495 /client/map/progress.gdshader
parent5fde584021fa0d073d068ab7edde44aff6098bed (diff)
parentb9fb88e52c5351392882bc0b470108da9d41d3a9 (diff)
downloadhurrycurry-9cffa5019b017045b7dbdf6577c89b70b8a11a50.tar
hurrycurry-9cffa5019b017045b7dbdf6577c89b70b8a11a50.tar.bz2
hurrycurry-9cffa5019b017045b7dbdf6577c89b70b8a11a50.tar.zst
Merge branch 'master' of https://codeberg.org/metamuffin/undercooked
Diffstat (limited to 'client/map/progress.gdshader')
-rw-r--r--client/map/progress.gdshader7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/map/progress.gdshader b/client/map/progress.gdshader
index 6e0d06ba..9567bcac 100644
--- a/client/map/progress.gdshader
+++ b/client/map/progress.gdshader
@@ -1,6 +1,7 @@
/*
Undercooked - a game about cooking
Copyright 2024 nokoe
+ Copyright 2024 tpart
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
@@ -16,19 +17,21 @@
*/
shader_type spatial;
+render_mode unshaded;
uniform float progress = 0.;
uniform bool bad = false;
void fragment() {
- vec3 color = vec3(0., 1., 0.);
+ vec3 color = vec3(0., .5, 0.);
float alpha_fac = 1.;
if (bad) {
color = vec3(1., 0., 0.);
alpha_fac = sin(TIME * 15.) * .5 + 1.;
}
if (UV.x > progress) {
- ALPHA = 0.1;
+ ALPHA = 1.;
+ color = vec3(0.1, 0.1, 0.1);
}
ALPHA *= alpha_fac;
ALBEDO = color;