Use const name in set_shadow_type