A mental ray geometry shader for writing out the mila layer buffers