KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
WarpShader
★ 9
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
postgresql-upgrade
:
No description available.
gitops-argocd-repo-structure
:
No description available.
EnumTabViews-CustomTabBars
:
Starter project
today_121
:
No description available.
vibrant-ui
:
Modern, animated, and interactive components built for design engineers.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
WarpShader
?
Download (.md)
# WarpShader Fast SwiftUI faster than light visual effect as a SwiftUI view modifier.  ## Installation Add WarpShader as a package dependency by either using Xcode > File > Add Package Dependencies… and choosing this repo. Or by adding this package to the dependencies list if you’re using a Swift Package file directly. ## Usage Example usage for SwiftUI is in `ContentView.swift`. Apply the `.warp()` view modifier to any view. ## Acknowledgements This is based on work by “Hazel Quantock” / “TekF” from this code: https://www.shadertoy.com/view/Xdl3D2 ## Customization The modifier has a good number of properties that can be customized. ```swift Rectangle() .warp( starScale: starScale, // relative star size. Things get chonky around 3.5 or so speed: speed, // zippy zoom! fov: fov, // lower values show a wider view bifrost: bifrost, // By Thor’s beard: higher values increase the red-blue separation of stars tails: tails, // higher values turn stars into longer lines starFieldOffset: starFieldOffset // changes the point of origin of stars ) ``` I highly recommend building the included app, WarpShaderExample, clicking the “Controls” button, and finding values you find most pleasing. To build the app from this repo, chooseo the `WarpShaderExample` target then ‘Run’. Animating between warp parameters leads to many interesting results that may seem familiar.