Algorithms for supercomputer modeling of the radiation electromagnetic field in heterogeneous materials of a complex finely-dispersed structure are constructed. A geometric model of a heterogeneous medium is created using Stilinger-Lubachevsky algorithms for multimodal structures. The model includes a system of detectors for statistical evaluation of functionals on the space of solutions of the photon-electron cascade transport equations. Algorithms for the three-dimensional approximation of the results of modeling the radiation transport in a fine-dispersed medium to an electrodynamic difference grid are developed. The approximation methods based on the technology of neural networks. The method of numerical solution of the complete system of Maxwell's equations for calculating the electromagnetic field in a fine-dispersed medium is worked out. The results of demonstration calculations of the electromagnetic field are presented. The results of the calculations show that the spatial distribution of the radiation electromagnetic field has a sharply inhomogeneous structure caused by the presence of boundaries of materials with different radiation properties.