Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
slightknack committed Sep 7, 2021
1 parent d94fb36 commit c432408
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions LISP.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ Here's a quick reference for common uniforms and stuff.
### Uniforms
- Textures: `u_texture_<N>` is the Nth texture passed into the shader. It is a `uniform sampler2D`.
- Previous: `u_previous` is the output of the previous frame in recurrent shaders.
- Time: `u_time` is the time, in seconds, since the shader last started running. it is a `uniform float`
- Resolution: `u_resolution` is the output resolution size, in pixels. This is a `uniform vec2`.
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ Once you've installed shadergraph via `cargo install shadergraph`, test to see t
shadergraph --help
```

This should print out some usage information. To run a shadergraph, if you're currently in the same directory as a standard shadergraph project, run:
This should print out some usage information. To create a new project, run:

```
shadergraph new path/to/project
```

This will create a new example project in the specified directory. To run a shadergraph, cd into the directory of a project and run:

```
shadergraph run
Expand Down

0 comments on commit c432408

Please sign in to comment.