[UE5] Efficient way of getting mesh's cross section as a mask

Hi Yadon,

  1. I think this is using a closed container, and its Unity, but might be of help.
    What looks like the surface plane are actually the backfaces of the container:
    Liquid Shader Breakdown | Unity URP + Built-in - YouTube

  2. Using Blueprints:
    You could also use 2 line traces to get the elipse radius of the pour direction and the orthogonal radius, and scale the (round) surface plane depending on that. Helpful for an open container if you want to determine if fluid is spilled or not. Needs additional material logic to make it look okay.

  3. According to Suggested Topics there was a recent discussion about methods:
    Try to recreate this effect with unreal material

1 Like