I'm making a water shader, and it uses layered sine waves for waves. I copied the wave function into a script so I could align objects to the waves, but it isn't working. The problem is probably because of the TIME variable. In my script, I have some code
func _process(delta):
t+=delta
t should be time, but will it be the same value as in the shader? If not, how can I get that value in a script?