Added danger

This commit is contained in:
2026-06-30 19:27:46 +03:00
parent 20e297999b
commit ab159b899d
18 changed files with 216 additions and 5 deletions
+5
View File
@@ -1,5 +1,7 @@
shader_type canvas_item;
#include "res://game/shaders/random_color.gdshaderinc"
uniform float corruption_x = 0.0;
uniform float edge_width = 50.0;
uniform mat4 screen_to_world;
@@ -19,4 +21,7 @@ void fragment() {
COLOR.rgb = mix(bw, screen_color.rgb, t);
COLOR.a = screen_color.a;
float chance = (1.0 - t)/8.0;
COLOR = random_color(COLOR, UV, chance);
}