Abstract:
To address the limitation of the reflection shadow mapping algorithm in global illumination, where it fails to determine the visibility between the shading points and the secondary light sources, a novel algorithm is proposed. This algorithm achieves visibility determination by incrementally stepping the light path through voxels. The model is voxelized using Axis-Aligned Bounding Boxes (AABB) to record voxel and non-voxel information, and a distance field is generated within the AABB using voxel information. Initially, preliminary visibility judgment is performed by intersecting the ray connecting the secondary light source and the shading point with the AABB. If the ray intersects with the AABB, adaptive ray marching is performed within the AABB using the distance field information stored in each voxel. Experimental results show that the algorithm can effectively solve the problem that the visibility cannot be judged when the reflection shadow map calculates the contribution of the secondary light source.