Skip to content

Commit 00395a3

Browse files
committed
Add README
1 parent d9b06cf commit 00395a3

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,31 @@
11
# PluginRust
2-
Write Rust shaders in SHADERed
2+
SHADERed plugin that lets you write your shaders in Rust. This is possible thanks to the [rust-gpu](https://github.com/EmbarkStudios/rust-gpu) project.
3+
4+
![Screenshot](./imgs/screen1.png)
5+
6+
You can change path to your `rustc_codegen_spriv.dll` in the options:
7+
8+
![Options](./imgs/screen2.png)
9+
10+
## How to build
11+
Run the following commands:
12+
```bash
13+
git clone https://github.com/dfranx/PluginRust.git
14+
cmake .
15+
make
16+
```
17+
18+
## Known bugs & problems
19+
**NOTE:** You have to turn off the "Recompile shader on content change" option since build times are relatively long.
20+
21+
Currently errors don't point to shader stage/source:
22+
![Bug](./imgs/screen3.png)
23+
24+
## How to use
25+
This plugin requires at least SHADERed v1.4.
26+
27+
Copy the .dll/.so file to `plugins/Rust` folder in your SHADERed's installation directory
28+
29+
After you start SHADERed, you can open one of the provided projects to quickly get started.
30+
31+
Also, make sure you have `cargo` installed on your PC.

imgs/screen1.png

533 KB
Loading

imgs/screen2.png

45.3 KB
Loading

imgs/screen3.png

22.1 KB
Loading

0 commit comments

Comments
 (0)