2. Materials

Adding the Fluid Interaction Material Function to your water material

To preview this, open up the "M_Water" material.

Within the material you will see two "MF_FluidInteraction" material functions.

They use material attributes inputs so make sure to create your material with a "Make/Break" material attributes node. You should also consider enabling "Use Material Attributes" from the details panel of the material you wish to add the fluid sim to.

You will want to hook up your render targets to this node, make sure you use the same in the set. and if you would like to have more simulations, you just need another "MF_FluidInteractions" in your material. This one currently uses two.

NOTE: The more fluid interaction material functions you have in your material, the more expensive it will be. Its best to stick with just one, in some special use cases you can have more.

You can offset the UV of the fluid interaction and also change the displacement intensity. I set "Displacement Intensity" to 15 by default in the preview.

Last updated