Skip to content

tedsta/wgpu-pbr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wgpu-pbr

🚧 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.

Run the example

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

Screenshots

screenshot screenshot screenshot screenshot

Features

  • 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)

License

MIT

Assets

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.

About

Implementation of PBR using wgpu-rs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages