How do i make volumetric clouds?

i’ve been struggling with volumetric clouds for a few days now

i understand the principle; raymarching through space and sampling density at the position

but i don’t know how to direct the rays, accounting for the viewport’s field of view and look direction

pls help