@Garisaan i have done something sort of like this here: https://retropie.org.uk/forum/topic/4046/crt-pi-shader-users-reduce-scaling-artifacts-with-these-configs-in-lr-mame2003-lr-fbalpha-lr-nestopia-and-more-to-come
if you use the last two links in that post, it will give you crt-pi-curvature-vertical shader in vertical mame games, and the regular curvature shader in the rest.