boss start, some enemies

This commit is contained in:
Daniel Kauss Serna 2026-04-16 18:53:36 +02:00
parent 93968ff9fb
commit 66ecb04bd1
123 changed files with 1884 additions and 499 deletions

View file

@ -1,12 +1,10 @@
shader_type canvas_item;
// --- Uniforms ---
uniform vec4 target_color : source_color = vec4(0.0, 0.0, 1.0, 1.0);
uniform float tolerance : hint_range(0.0, 1.0) = 0.1;
uniform vec4 water_deep_color : source_color = vec4(0.0, 0.4, 0.8, 1.0);
uniform vec4 foam_color : source_color = vec4(1.0, 1.0, 1.0, 1.0);
// --- Functions ---
vec2 random(vec2 uv) {
return vec2(fract(sin(dot(uv.xy, vec2(12.9898,78.233))) * 43758.5453123));
}
@ -44,10 +42,8 @@ void vertex() {
}
void fragment() {
vec4 tex_color = texture(TEXTURE, UV);
float color_diff = distance(tex_color.rgb, target_color.rgb);
if (color_diff < tolerance) {