🚧 Under construction - don't use yet! 🚧
wgpu-pbr is a realtime physically-based renderer (PBR) intended for use in games. It is not a game engine - you will still need to handle input, build a game loop, fix your timestep, integrate with a physics engine, etc.
Credit is due to rendy-pbr and Amethyst, which the shaders are heavily derived from.
git clone https://github.com/tedsta/wgpu-pbr
cd wgpu-pbr
wget https://www.dropbox.com/s/5rl9ji77s3qnhdk/assets.zip
unzip assets.zip
cargo run --release --example basic
- PBR materials
- base texture
- normal map
- metallic roughness
- ambient occlusion
- emissive
- Lights
- Point lights
- Spot lights
- Directional lights
- HDR environment maps
- Bloom
- Shadows
- Skeletal animations
- Assets
- glTF
- Wavefront OBJ via tobj (with custom .mtl attributes for PBR materials)
MIT
SciFiHelmet and BoomBox models are from the glTF Samples repository. BoomBox was originally created by Microsoft and is licensed under the public domain. SciFiHelmet was created by Michael Pavlovich for Quixel and is licensed under the CC-Attrib 4.0 license.