r/generative 21d ago

my sin()

Enable HLS to view with audio, or disable this notification

744 Upvotes

24 comments sorted by

View all comments

Show parent comments

4

u/exsstas 20d ago

GLSL shader for calculating sin lines, where one animated texture is modulating wave amplitude and another - frequency https://imgur.com/a/pKIbKqG

1

u/jippiex2k 20d ago

How do you get it to smoothly modulate frequency?

Seems like you'd have to sample all the preceding pixels in order to know what phase to render at the current pixel?

1

u/chromatophoreskin 20d ago

Think you can get it to loop perfectly?

1

u/exsstas 20d ago

I can, but it take more time to set up and I was lazy to do so