针对平行分割阴影图算法中当光线方向与视线方向不垂直时,场景中对象被冗余渲染到多层阴影图中的问题,提出一种基于GPU的光源空间平行分割阴影图算法.在光源空间中,利用光源视锥体将场景划分为不相交的多层区域,利用GPU为各层生成阴影图,以确保场景采样点不在多层阴影图中重复出现;同时给出了一种快速综合场景阴影效果的绘制方法,通过避免判断像素层次的操作提高了GPU的利用率.实验结果表明,文中算法解决了平行分割阴影图算法的冗余渲染问题,提高了渲染效率和场景阴影质量.
Parallel-split shadow maps (PSSM) suffers from redundant rendering that unnecessarily renders same objects to multiple shadow map textures, when the light's direction and the camera's view direction are not perpendicular. To solve this problem, this paper presents a light space parallel- split shadow maps algorithm (LiSPSSM). The algorithm first divides the scene into certain layers that do not intersect each other by light's frustums in light space, and generates one shadow map for each layer to ensure that any shadow map does not have the same sample points. Then a faster synthesizing scene shadow method, which avoids operations of pixel layer determination, is given to improve GPU's efficiency. The results show that LiSPSSM effectively addresses the redundant rendering problem in PSSM and improves the efficiency and quality of real time shadow rendering.