Smoke effect and animations revamp

This commit is contained in:
Rendo 2025-12-17 11:51:28 +05:00
commit 4c3e35d1fc
20 changed files with 106 additions and 29 deletions

21
shaders/firewall.gdshader Normal file
View file

@ -0,0 +1,21 @@
shader_type spatial;
render_mode unshaded, cull_disabled,depth_prepass_alpha;
uniform sampler2D noise_texture: repeat_enable;
uniform sampler2D fire_gradient;
uniform float height: hint_range(0.0, 1.0, 0.01);
void fragment() {
float noise = texture(noise_texture,UV + vec2(0,fract(TIME/5.0))).x;
ALBEDO = texture(fire_gradient,vec2(UV.y+noise*0.1,0)).rgb;
float interpolated = 0.;
if (UV.y > 0.0) {
interpolated = UV.y/height;
}
if (UV.y < height) {
ALPHA = step(0.5,mix(noise,1.0,interpolated-0.3));
}
}