(Glide2GL) Refactor apply_shade_mods