⚠️ This repository is not maintained. For up-to-date version, please check the implementation in Blender, which includes improvements such as a near-field extension, reduced energy loss by accounting multiple scattering and a TRRT+ lobe, as well as a few simplified computation and bug fixes.
This code base includes the implementation of the SIGGRAPH 2022 poster Scattering from Elliptical Hair Fibers Based on Microfacet Theory in Mitsuba 2.
src/bsdfs/CMakeLists.txt
:
add_plugin(roughhair roughhair.cpp)
Add to src/shapes/CMakeLists.txt
:
add_plugin(hair hair.cpp)
add_plugin(hairsegment hairsegment.cpp)
Then compile as instructed in the Mitsuba 2 Docs.
in the build
folder, execute dist/mitsuba ../hair_scenes/xxx.xml
roughhair.cpp
.