Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pythops/shader-art-rs
🪄 Shader art using webgpu
https://github.com/pythops/shader-art-rs
rust shader webgpu wgpu wgsl
Last synced: 15 days ago
JSON representation
🪄 Shader art using webgpu
- Host: GitHub
- URL: https://github.com/pythops/shader-art-rs
- Owner: pythops
- Created: 2023-08-06T14:21:19.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-23T07:49:24.000Z (4 months ago)
- Last Synced: 2024-08-05T15:07:39.193Z (3 months ago)
- Topics: rust, shader, webgpu, wgpu, wgsl
- Language: Rust
- Homepage:
- Size: 66.4 KB
- Stars: 16
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
✨ Shader art using webgpu ✨
This is the implementation of [An introduction to Shader Art Coding ](https://www.youtube.com/watch?v=f4s1h2YETNY) in Rust using webgpu.
## 🔌 Setup
You need:
- [Rust](https://www.rust-lang.org/) compiler and [Cargo package manager](https://doc.rust-lang.org/cargo/)
- One of the [supported backends](https://github.com/gfx-rs/wgpu#supported-platforms) by wgpu crate.## 🚀 Getting started
```
$ git clone https://github.com/pythops/shader-art-rs
$ cd shader-art-rs/
$ cargo run
```## ⚙️ Configuration
### Save as gif
```
$ cargo run -- --save animation.gif
```### Speed up the animation
You can speed up the animation or the generated gif.
```
$ cargo run -- --speed
```### GIF resolution
```
$ cargo run -- --save animation.gif --resolution
```the default resolution is `512x512`
## 🙏 Acknowledgments
Thanks to [@sorth](https://github.com/sotrh) for the amazing tutorial [learn-wgpu](https://github.com/sotrh/learn-wgpu)
## ⚖️ License
AGPLv3