create weather controller and daynight controller

This commit is contained in:
2026-03-24 13:56:36 +01:00
parent 5e9611ed44
commit 36d6f29fd3
45 changed files with 2186 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
shader_type spatial;
render_mode unshaded;
/*
uniform float time_scale = 3.0;
uniform float wave_amplitude = 0.5;
uniform float wave_frequency = 1.0;
void vertex() {
float random_seed_offset = INSTANCE_CUSTOM.x * 100.0;
float scaled_time = (TIME + random_seed_offset) * time_scale;
VERTEX.x += sin(VERTEX.y * wave_frequency + scaled_time) * wave_amplitude;
}
void fragment() {
ALBEDO = COLOR.rgb;
ALPHA = COLOR.a;
}*/