ivuecode / Liquid-Simulation

Liquid simulation effect created in Unity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Liquid Effect 🌊

An implemntation of liquid simulation effect in Unity.

This project uses blur shaders along with 2D rigidbody sprites to create the illusion of a liquid body. Render textures and material instancing are methods also used to achieve this inexpensive fluid motion look.

Preview πŸ‘€

gif demo

Getting Started πŸ“ƒ

Clone or download this repository and open the project with your favourite flavour of Unity.
This project was built with Unity 2018.2

Optimizations ✏️

There are a few points to consider when using this application:

  • Using thousands of rigidbodys is very taxing. This effect should not be used to recreate the ocean. For a simple motion graphic effect such as the example gif, won't cause you any problems at all.

  • Recreating this project with the new Unity ECS or Job System will drastically increase particle count.

Contributing πŸ’ͺ

Looking to contribute something to this project? Here's how you can help.
If you believe something needs to be immediately fixed please open an issue and document the problem. Fork this project and create a pull request with your solution to the problem. Thank you.

VueCode YouTube
VueCode Twitter
VueCode Discord

About

Liquid simulation effect created in Unity

License:MIT License


Languages

Language:C# 52.7%Language:ShaderLab 47.3%