I need help with line2d

Godot Version

4.6

Question

I am following a tutorial and i am trying to make a thunder, the problem is in this tutorial the teacher uses line2d, creates a visual shader does some settings and then after that he places the texture in shader parameters then the line becomes black and afterthat he goes to fill, texture mod and put it on stretch then the main texture reveals itself insted of black line, but when i do the same thing in same environment after i put it on stretch mod, godot doesn’t show my texture(thunder)

Please tell me whats wrong i have no clue is this a bug?

func _ready() -> void:
    print("hello world")

It might be helpful to link the tutorial!

Here’s the link

Remove the material/shader.

Not the same one, but also comes with a tutorial video:

It’s look like you don’t use right shader function.
Change the top-left dropdown menu of the shader editor to Fragment, not Vertex. And then retry those settings in the tutorial