A physically based renderer

Clone this repo:

Branches

  1. 593df1d Stop blitting depth buffer to screen; it is illegal. by Josh Gargus · 13 days ago master
  2. fb6986d When printing per-frame timings, also print memory use. by Josh Gargus · 2 weeks ago
  3. 89bce22 Fix a compiler error due to upgraded toolchain. by Josh Gargus · 2 weeks ago
  4. 0c8101c Update Vulkan SDK to 1.0.42.1 by Josh Gargus · 2 weeks ago
  5. 4bcddb5 Fix Image has_depth/stencil(). by Josh Gargus · 5 weeks ago

Escher

Escher is a physically based renderer.

Features

  • Volumetric soft shadows
  • Color bleeding
  • Light diffusion
  • Lens effect

Building

Escher requires Vulkan, and currently only builds on Linux. In order to build Escher, you need to:

  • install build dependencies
sudo apt install libxinerama-dev libxrandr-dev libxcursor-dev libx11-xcb-dev libx11-dev mesa_common_dev
  • install a GPU driver that supports Vulkan
  • install the LunarG Vulkan SDK (installed into third_party/vulkansdk when Escher is pulled down by jiri as a part of Fuchsia)
  • set the VULKAN_SDK, VK_LAYER_PATH, and LD_LIBRARY_PATH environment variables, e.g.:
export VULKAN_SDK=$FUCSHIA_DIR/lib/escher/third_party/vulkansdk/x86_64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$VULKAN_SDK/lib
export VK_LAYER_PATH=$VULKAN_SDK/etc/explicit_layer.d
  • pull down dependencies for the waterfall example:
(cd examples/waterfall/third_party; git submodule init; git submodule update)
  • specify that you want to build only the Escher module:
cd $FUCHSIA_DIR; ./packages/gn/gen.py -m escher -r
  • BUILD!!
buildtools/ninja -C out/release-x86-64/ && out/release-x86-64/host_x64/waterfall