character volumetric shadows.

hello! Does anybody ahve an idea on how can i get my sharacter to cast a shadow that´s afected by the in game volume?

here´s an example on what i mean, i don´t remember how to replicate it