## Aether: An Embedded Domain Specific Sampling Language for Monte Carlo Rendering

Luke Anderson, MIT CSAIL

Tzu-Mao Li, MIT CSAIL

Jaakko Lehtinen, Aalto University and NVIDIA

Frédo Durand, MIT CSAIL and Inria, Université Côte d’Azur

## Abstract

Implementing Monte Carlo integration requires significant domain expertise. While simple samplers, such as unidirectional path tracing, are relatively forgiving, more complex algorithms, such as bidirectional path tracing or Metropolis methods, are notoriously difficult to implement correctly. We propose Aether, an embedded domain specific language for Monte Carlo integration, which offers primitives for writing concise and correct-by-construction sampling and probability code. The user is tasked with writing sampling code, while our compiler automatically generates the code necessary for evaluating PDFs as well as the book keeping and combination of multiple sampling strategies. Our language focuses on ease of implementation for rapid exploration, at the cost of run time performance. We demonstrate the effectiveness of the language by implementing several challenging rendering algorithms as well as a new algorithm, which would otherwise be prohibitively difficult.

## Publication

Aether: An Embedded Domain Specific Sampling Language for Monte Carlo Rendering
Luke Anderson, Tzu-Mao Li, Jaakko Lehtinen, Frédo Durand
ACM Transactions on Graphics 36(4) (In Proceedings of SIGGRAPH 2017)

## Files

SIGGRAPH 2017 Paper (9MB)

## Code

The code for Aether is available here.

## Tutorial

A detailed overview of Aether and its usage is available here.

## Errata

p(\omega) = \sqrt{| \det J^\text{T} J |}^{\color{red}{-1}} p(u_1,u_2)
p(\omega) = \sqrt{| \det J^\text{T} J |} p(u_1,u_2)