Skip to content

Commit

Permalink
add examples to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobhellermann committed Dec 26, 2021
1 parent 2730bcd commit 3516248
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -418,16 +418,20 @@ name = "custom_shader_manual"
path = "examples/shader/custom_shader_manual.rs"

[[example]]
name = "custom_shader_pipelined_glsl"
path = "examples/shader/custom_shader_pipelined_glsl.rs"
name = "shader_material_glsl"
path = "examples/shader/shader_material_glsl.rs"

[[example]]
name = "custom_shader_instancing_pipelined"
path = "examples/shader/custom_shader_instancing_pipelined.rs"
name = "shader_instancing"
path = "examples/shader/shader_instancing.rs"

[[example]]
name = "animate_shader_pipelined"
path = "examples/shader/animate_shader_pipelined.rs"
name = "animate_shader"
path = "examples/shader/animate_shader.rs"

[[example]]
name = "compute_shader_game_of_life"
path = "examples/shader/compute_shader_game_of_life.rs"

# Tools
[[example]]
Expand Down
5 changes: 5 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ Example | File | Description
Example | File | Description
--- | --- | ---
`shader_material` | [`shader/shader_material.rs`](./shader/shader_material.rs) | Illustrates creating a custom material and a shader that uses it
`shader_material_glsl` | [`shader/shader_material_glsl.rs`](./shader/shader_material_glsl.rs) | A custom shader using the GLSL shading language.
`custom_shader_manual` | [`shader/custom_shader_manual.rs`](./shader/custom_shader_manual.rs) | Example of a custom shader which doesn't use the `MaterialPlugin`
`shader_instancing` | [`shader/shader_instancing.rs`](./shader/shader_instancing.rs) | A custom shader showing off rendering a mesh multiple times in one draw call.
`animate_shader` | [`shader/animate_shader.rs`](./shader/animate_shader.rs) | Shows how to pass changing data like the time since startup into a shader.
`compute_shader_game_of_life` | [`shader/compute_shader_game_of_life.rs`](./shader/compute_shader_game_of_life.rs) | A compute shader simulating Conway's Game of Life
`shader_defs` | [`shader/shader_defs.rs`](./shader/shader_defs.rs) | Demonstrates creating a custom material that uses "shaders defs" (a tool to selectively toggle parts of a shader)

## Tests
Expand Down

0 comments on commit 3516248

Please sign in to comment.