Files
slime-moldies/shaders/dissolve.gdshader
2025-08-03 01:39:59 +03:00

12 lines
198 B
Plaintext

shader_type canvas_item;
uniform sampler2D sim_texture;
uniform float decay_factor;
void fragment() {
float c = texture(sim_texture, UV).r;
c = c * decay_factor;
COLOR = vec4(c, c, c, 1.0);
}