Ray tracing demo: Even more documentation on those sampling functions.