A stellar atmosphere is the outer region that determines the escaping spectrum and matches the interior stellar structure to its radiation boundary conditions. A photosphere is the layer near unit optical depth, not a zero-temperature boundary. The inward intensity at the outer surface vanishes when there is no external illumination.
New to topics? Read the docs here!