unit

Three types of Liquid shaders

Learn how to build liquid fill effects using world-relative position calculations and more.

1 Min

What you will learn

This unit teaches you how to create dynamic liquid shaders and introduces shader-script interaction. It also demonstrates how shaders can integrate with Unity's broader systems to create gameplay-responsive effects.

By the end of this unit, you’ll be able to do the following:

  • Calculate fill height based on object position.
  • Create sharp boundaries for liquid surfaces using Alpha Clipping.
  • Display different colors on inside/outside faces.
  • Generate wave patterns using Sine functions.
  • Create moving animations by blending position and time.
  • Control shader properties dynamically from C# code.

Additional XP earned by completing the unit

+100