steincodes/godot-shader-tutorials

2d fog shader stop moving after some time

Raklit opened this issue · 2 comments

I have basic problem with 2d dynamic shaders in Godot.
2d fog shader stop moving after some time.
I think it depends on the motion vector and the coordinate overflow.
Where I can see issue without this error?

This was a TIME variable overflow problem. Do not use this variable directly in any shader.

@Raklit What should be used instead?
I'm asking because most shader examples I see online use the TIME variable in some way for animated effects.