added material helper functions. probably finished advance_eye_paths kernel