A trail texture for 2D ground effects, the tested Godot 4.6 files from
https://www.spritecook.ai/blog/2d-trail-render-texture-snow-grass-water

trail_canvas.gd      the canvas: two SubViewports that take turns, add_dot() and draw() each frame
trail.gdshader       one frame of the canvas: scroll, fade, paint the dots
snow_dents.gdshader  footprints in snow, read from the canvas
render.gd            the test scene: a walk across a snow strip, all wired up. It loads its art from an in/
                     folder (not included): ground_snow.png and snow_mask.png (white where the ground is snow).
                     In a game, add your dots from your player and set the ground's uniforms the same way.
