In our docs, “Opacity as Density is a feature available in HDRP and URP. This option becomes available on each Terrain Layer when you disable the Enable Height-based Blend option on the Terrain’s Terrain Lit Material, and when you assign Diffuse and Mask Map Textures to the Terrain Layer.”