Skip to content

ivanjermakov/moonlight

Repository files navigation

moonlight

WebGPU path tracer

preview

Features

  • glTF scene import
  • direct and indirect lighting
  • metals and dielectrics
  • diffusion, reflection, refraction, transmission
  • texture (albedo) maps
  • normal maps
  • environment maps
  • dispersion
  • depth of field
  • ACES tone mapping
  • BVH of scene objects
  • BVH of object meshes

glTF limitations

Some scene features needed for full path tracer functionality are not present in glTF format.

Feature Solution
Camera focus distance focus_distance custom property on camera
Camera fstop aperture_fstop custom property on camera
Environment map map_env custom property on camera with a path to .exr file

Further reading