- Edited
ScoutMoreOften
Yes, this is shader code. I think this is a somewhat advanced tutorial where it's expected that you know how to write the boilerplate code. Not every tutorial can be for everybody or they would all have the length of an encyclopedia. When you learn something complex like game development, it's your responsibility to decide what material is for you at what time. Then again, it would be nice if the tutorial clearly stated what you should know before trying it.
I don't know much about shaders, but the comment seems to suggest that you should provide time_scale
as a uniform float
. That is a bit like a global variable that you can change from outside the shader. TIME
is a built-in variable that godot provides.
If you really want to understand this tutorial, maybe you should start a bit simpler with Godot's shader documentation: https://docs.godotengine.org/en/stable/tutorials/shaders/index.html
But then again, maybe you're just not ready for shaders and need to learn other things first, I couldn't tell.