The present application provides a method, apparatus, device, and storage medium for generating an atmospheric
mask file, relating to the field of
computer technology. The method includes: generating an atmospheric
opacity mask according to the
mask of the
stratosphere and the mask of the surface
atmosphere; wherein, the mask of the
stratosphere is configured with color parameters of the
stratosphere, and the mask of the surface
atmosphere is configured with color parameters of the surface
atmosphere; generating an atmospheric mask file according to the mask of the stratosphere, the mask of the
troposphere, the mask of the surface atmosphere, and the atmospheric
opacity mask; the atmospheric mask file is used for rendering the
atmospheric effect of a virtual
planet model, wherein, the mask of the
troposphere is configured with color parameters of the
troposphere. Compared with the prior art, the problem that the
atmospheric effect of the
planet is very inconsistent with physical laws is avoided.