How to create customisable rim erosion and offset outline for mesh

Update:

I also wouldn’t be surprised if it’s possible to do this using Substrate where you have 2 Substrate Slab BSDF, and then a Substrate Vertical Layer or a Substrate Horizontal Blend, slap the gradient into the Top Thickness or the Mix.


The problem would be how do we inflate the outer shell. There isn’t a WPO input but theoretically we should be able to do that.