twostraws / Inferno

Metal shaders for SwiftUI.
Other
2.47k stars 119 forks source link

I have a prototype for a Shimmer effect. #33

Closed DandyLyons closed 7 months ago

DandyLyons commented 8 months ago

I have a naive prototype for a Shimmer effect (a la SwiftUI-Shimmer ) that I would like to add to the library.

I was able to get the shine working, but the animatable value isn't working correctly. It's pivoting at the top leading corner, and I'd like it to simply slide horizontally. If anyone, has any pointers, that would be much appreciated.

I tried to use the same "uv" method that Paul showed here.

https://github.com/twostraws/Inferno/assets/72824209/71580d43-dd73-4450-8aad-4fb756f44237