the maximum being at a certain depth in the thickness