HOW CAN I CONTROL SOFTNESS OF LIGHTS BY DIFFUSION

I would like to ask how to change the softness and hardness of the light through the replacement of the medium

As shown in the figure, a diffusion can be used to affect the softness of direct light