v2 produces correct output with materials