pub fn register_material(cx: &mut Context)