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: 5 months 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 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-23T07:49:24.000Z (over 1 year ago)
- Last Synced: 2025-01-04T20:47:03.225Z (12 months ago)
- Topics: rust, shader, webgpu, wgpu, wgsl
- Language: Rust
- Homepage:
- Size: 66.4 KB
- Stars: 17
- Watchers: 2
- Forks: 1
- 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