Lava material with full controls over the size, shape, and speed. Can transform into Magma with procedural harden generation.
I want to simulate the formation of magma on lava and movement of the magma wave with some cool down on the surface. To achieve this, I came up with a plan of mixing Distance to the nearest obj and vertex paint.
I found this cool down magma material on quixel bridge
Final result
I am using two noise maps, perlin and cloud, to create the lava formation and deformation.
Using the two deformed noise Map as mask to lerp two orange color
final result
Using the AO Map as mask to lerp Lava and the rock to make magma
Add a parameter to control the intensity, I named it lava speed because I want to control the panning speed and the intensity of the magma using one parameter.
AO map
final result
Connecting the vertex color to height lerp to merge the materials
rock
Magma
Lava
Red channel
Green channel
I am using two channels here because I want to control the harden and the melted part of the magma
Final result
I want the magma that can move at different direction to simulate the movement of the magma in real life.
this is a flow map, to give different direction to the texture
Flowmap painter
Flowmap function, credited to Ben Cloward and his amazing flowmap tutorial
make flow map for each texture, use it as the base
Final result
Connecting the SAME custom parameter to lerp all the ice and water materials
add up all the masks to lerp between lava rock and moving magma
before
after
The magma is now complete and looks realistic. It can transform into lava using a single parameter slider and has many other settings to alter the speed, shape, and color of the magma and lava
Show a video of the final tool in action