bcp de characters

This commit is contained in:
E250429F
2026-09-03 09:43:13 +02:00
parent a061aff066
commit 025a866eef
1175 changed files with 85837 additions and 286 deletions
+16
View File
@@ -0,0 +1,16 @@
shader_type spatial;
render_mode blend_mix, depth_draw_always, cull_disabled;
uniform sampler2D texture_albedo : source_color;
uniform float fade_distance : hint_range(0.0, 10) = 1.0;
uniform vec4 fade_color : source_color = vec4(0.2, 0.5, 1.0, 0.4);
uniform float object_dist_to_camera = 10.0; // updated from script every frame
void fragment() {
vec4 tex_color = texture(texture_albedo, UV);
float t = smoothstep(0.0, fade_distance, object_dist_to_camera);
ALBEDO = mix(fade_color.rgb, tex_color.rgb, t);
ALPHA = mix(fade_color.a, tex_color.a, t);
}