Vegetation Masked and Two-sided Foliage Started to be semitransparent

I had this too after I upgraded the project to a new engine version. Remaking the base material solved the problem for me.