How To Make Hard Height Effect?

Hey all.

I wanna make hard height effect while using shader with map.
Is there any sample or video or article or hint that I can follow? (even googling keyword would be okay.)
I just assuming it gonna need vertex shader. (I’m still new to shader.)

[Before]
7414838--906968--before.png

[After]
7414838--906965--after.png

There’s not really a good way to achieve that particular effect with shaders. Generally you’d do that with 4 cube meshes that you directly manipulate. Though you could have a grid of cube meshes that sample a texture to set position / height offsets based on a UV calculated from their world space pivot position or a unique UV baked into each cube.

Thanks for the clear answer!