appm
Pre new material model.

Fixed direct light sampling bug.