Variation across the thickness of the layer