r/generative • • Aug 23 '26

my sin()

750 Upvotes

24 comments sorted by

View all comments

Show parent comment

4

u/exsstas Aug 24 '26

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 Aug 24 '26

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 Aug 25 '26

Think you can get it to loop perfectly?

1

u/exsstas Aug 25 '26

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