# Supplemental archive

In this supplemental archive, we provide two executables, along with their source code: `lil_viewer.exe` is used to test our importance sampling strategy, while `micrograin.exe` is used to generate the lookup table. 

Binaries are in the `LilTracer/bin/Windows` folder, while the source code for applications may be found in the `LilTracer/apps` folder. For those who want to recompile applications from sources, explanations are provided in `LilTracer/README.md`. Note however that we have only tested compilation on windows platforms.

## `lil_viewer.exe`

A GUI application to explore BRDFs, in particular micrograin models and their sampling routines. Multiple views are available: BRDF slice, 2d plots, sampling, direct lighting, global illumination on a simple scene (https://github.com/lighttransport/lighttransportequation-orb). 

A variety of BRDF models (including of course those based on micrograins) are available when clicking on the 'add BRDF' button at the top left. Their parameters and options are available in the panel directly below.


## `micrograin.exe`

The lookup table used in our method is already provided in the archive (`LilTracer/src/lt/brdf/sigma_tab.h`), but may also be generated running the application `micrograin.exe`.



