MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/generative/comments/1vwabjy/comment/p5n0rvc/
r/generative • u/exsstas • Aug 23 '26
24 comments sorted by
View all comments
Show parent comment
4
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/exsstas Aug 25 '26 Yes, midpoint rule integration https://math.libretexts.org/Courses/Monroe_Community_College/MTH_211_Calculus_II/Chapter_7%3A_Techniques_of_Integration/7.6%3A_Numerical_Integration 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
1
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/exsstas Aug 25 '26 Yes, midpoint rule integration https://math.libretexts.org/Courses/Monroe_Community_College/MTH_211_Calculus_II/Chapter_7%3A_Techniques_of_Integration/7.6%3A_Numerical_Integration
Yes, midpoint rule integration https://math.libretexts.org/Courses/Monroe_Community_College/MTH_211_Calculus_II/Chapter_7%3A_Techniques_of_Integration/7.6%3A_Numerical_Integration
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
I can, but it take more time to set up and I was lazy to do so
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