pixels/examples/custom-shader
Jay Oster c2454b01ab
Simplify vertex attributes (#228)
- Vertex UVs can be computed from the positions, which saves a small amount of code and a small amount of bandwidth (both inconsequential).
- This is mostly for readability.
- Fixes vertically-flipped pixel buffer in the `custom-shader` example.
2021-11-20 14:06:23 -08:00
..
shaders Simplify vertex attributes (#228) 2021-11-20 14:06:23 -08:00
src Simplify vertex attributes (#228) 2021-11-20 14:06:23 -08:00
Cargo.toml Add resolver = "2" to all examples (#192) 2021-09-01 21:48:51 -07:00
README.md Add custom shader example (#100) 2020-07-19 02:18:02 -07:00

Custom Shader Example

Custom Shader Example

Running

cargo run --release --package custom-shader

About

This example is based on minimal-winit, and extends it with a custom renderer that adds white noise to the screen.