Raymarched volumetrics

I would like to have an option for raymarched volume as material for rendering volumes in the viewport and a slider for the volumetric resolution…

I found these about raymarched volumes on the web: