Jump to content

[SOLVED] Animated textures.. how?


photo

Recommended Posts

Hi, is it possible to make a texture scroll? i am trying to replicate a scrolling led information display like seen on train station platforms etc. I think just animating a tiled long texture across the surface that repeats should do the trick. But how?

Link to comment

Simple use time variable in texture transform like this - vec4(1.0,1.0,time*v,0.0), v - texture offset velocity scale. If you need strobe effect (when led size is big) use texture transform - vec4(1.0,1.0,-floor(time * v) /n,0.0), n - number of horizontal led elements.

Link to comment
×
×
  • Create New...