clayjohn / godot-volumetric-cloud-demo

A demo implementing one way of drawing volumetric cloudscapes in Godot sky shaders
MIT License
306 stars 23 forks source link

Fix clouds visually resetting every 100 seconds #6

Closed kb173 closed 1 year ago

kb173 commented 1 year ago

Closes #5.

The mod(TIME, 100.0) call causes the clouds to do a very noticeable jump every 100 seconds. Since the textures are all set to repeat_enable, this modulo operation can be removed with (as far as I can tell) no negative side-effects. The clouds now continuously animate smoothly.

clayjohn commented 1 year ago

Seems great, thank you! I can't remember why I was using mod there in the first place