Problem Rendering Ocean Foam In Mr

Hello,

I have set up a scene with an ocean and I use wake and foam texture, I would like to render it in MR but unfortunatly the foam dispears with MR. If I turn off shadow then it reapears. How can I fix this? or could I render the foam as the seaprated layer?
Could someone help o understand what is going onand help me to find a solution.