Author Topic: Surface Tension Support?  (Read 64 times)


  • Newbie
  • *
  • Posts: 8
    • View Profile
Surface Tension Support?
« on: June 21, 2021, 01:27:41 PM »

First of all, thank you for providing such a good solution.
We've made a lot of modifications based on an earlier version.
However, we encountered difficulties in developing the effect of concave or meniscus liquid surface, or surface tension effect of liquid.
Do you have plans to support this feature in future releases?



  • Administrator
  • Hero Member
  • *****
  • Posts: 7097
    • View Profile
Re: Surface Tension Support?
« Reply #1 on: June 21, 2021, 01:45:51 PM »

Well, that kind of effect is not planned. It could be implemented inside the ray-marching loop in LVLiquidPass3D.cging, by adjusting the _LevelPos value depending on the distance to the center of the container for example. So the level position is lower at the center than on the edges (for a concave meniscus) or viceversa (a convex meniscus). This adjustment should be included in the ray-march foam and ray-march liquid sections of the shader.

Kind regards