I need Line2D to leave a mark on canvas and save canvas as mix shader

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Suleymanov

I have a material (Visual Shader). There I have two textures and a third one which is black and white that I use to mix first two textures. I’d love to change that black and white texture based on Line2D. Every time I change the line, I want the pattern match the shape of line, and get saved as png.

Let me elaborate. I have forest texture, and I have pathway. I want the pathway resemble the line and update automatically every time I change the line.