Website powered by

Lava shader with dynamic slope-based flow direction in Unity

Custom lava shader I've written for Gloria Victis MMORPG. Flow is dynamic and its direction is based on world-space slope of geometry.
Model vertex color layout allows to locally control lava temperature and alpha cutoff. Material inspector had multiple properties allowing to control couple of features of the shader.

Controlling lava properties through Material inspector.

Flow direction is dynamic and based on current slope of the model.

Vertex color layout: red channel controls lava temperature, green channel is alpha cutoff (helpful for example in laying out many lava objects together).

Vertex color layout: red channel controls lava temperature, green channel is alpha cutoff (helpful for example in laying out many lava objects together).