#game #graphics #shader #rendering

renderling

A collection of WGPU render pipelines and simple types

10 releases

0.2.6 Nov 25, 2022
0.2.5 Nov 3, 2022
0.2.3 Sep 28, 2022
0.1.2 Jun 26, 2022
0.1.0 Feb 17, 2022

#45 in Rendering

MIT/Apache

30KB
629 lines

renderling 🍖

This library is a collection of WGPU render pipelines and types.

Shaders are written in GLSL. shaderc is used to compile shaders to SPIR-V.

Definition

renderling noun

A WGPU graphics pipeline, along with simple types used to marshal data to the GPU.

Pipelines

Forward

A blinn-phong material forward shader.

renderling forward shader pipeline

UI

A simple forward shader that supports vertices with colors and/or textures. It has a special blending uniform that determines how vertex colors should be blended with vertex UV texture coords. This enables support for colorful text.

Conveniences

  • Texture type
  • Mesh and MeshBuilder types

License

Renderling is free and open source. All code in this repository is dual-licensed under either:

MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)

at your option. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Roadmap

  • deferred shading pipeline
  • physically-based pipeline
  • rust-gpu shaders

Dependencies

~14–23MB
~332K SLoC