However the density statement allows you to vary the density across space using any of POV-Ray's pattern functions such as those used in textures. If no density statement is given then the density remains a constant value of 1.0 throughout the media. More than one density may be specified per media statement. The density statement may begin with an optional density identifier.
All subsequent values modify the defaults or the values in the identifier.
The next item is a pattern type. This is any one of POV-Ray's pattern functions such as bozo , wood , gradient , waves , etc. Of particular usefulness are the spherical , planar , cylindrical , and boxed patterns which were previously available only for use with our discontinued halo feature. All patterns return a value from 0.0 to 1.0. This value is interpreted as the density of the media at that particular point.