shader_type canvas_item; uniform sampler2D trail_tex; void fragment() { float v = texture(trail_tex, UV).r; COLOR = vec4(vec3(v), 1.0); }