## How to build this demo

```
cmake -H. -Bbuild
cd build
cmake --build .
```


Surface properties are hardcoded in surface_sampler.hpp
Other rendering configurations are hardcoded in main.cpp
This is done for performance


Example invocation:

./buddha.sh Fe D65 27 "name" 8
  Will render using 8 threads a Buddha made of Iron and illuminanted by a D65 source positioned 1m away from the model with an extend of 27mm.

./dragon.sh Au D50 10 "name" 8 "-v ../data/nikkon.png,-1.05,.65,.12"
  Will render using 8 threads a fragon made of gold and illuminated by a D50 light source positioned 1m away and with an extend of 10mm. Will also use the "nikkon" env map.
