Hi,
In such case, I would suggest you to use the CMasking_Mask's Material GBuf ID option - make a copy of used material(s), change the G-Buffer ID and assign these modified materials to the other Forest objects under the Geometry > Material. Attaching screen-shots.
Best regadrs,