The photosphere is a star's outer shell from which light is radiated. It extends into a star's surface until the plasma becomes opaque, equivalent to an optical depth of approximately 2⁄3, or equivalently, a depth from which 50% of light will escape without being scattered.
The surface of the Sun
Solar atmosphere: temperature and density. See here for meanings of extra lines in the graph.
In physics, optical depth or optical thickness is the natural logarithm of the ratio of incident to transmitted radiant power through a material.
Thus, the larger the optical depth, the smaller the amount of transmitted radiant power through the material.
Spectral optical depth or spectral optical thickness is the natural logarithm of the ratio of incident to transmitted spectral radiant power through a material. Optical depth is dimensionless, and in particular is not a length, though it is a monotonically increasing function of optical path length, and approaches zero as the path length approaches zero. The use of the term "optical density" for optical depth is discouraged.
Aerosol Optical Depth (AOD) at 830 nm measured with the same LED sun photometer from 1990 to 2016 at Geronimo Creek Observatory, Texas. Measurements made at or near solar noon when the Sun is not obstructed by clouds. Peaks indicate smoke, dust and smog. Saharan dust events are measured each summer.