The application discloses a kind of real-time generation and anti-
jitter rendering method of cascaded shadow, comprising: setting camera parameter and segmentation configuration, construct cascaded segmentation structure;According to
light source direction and view cone slice, calculate axisymmetric bounding box and execute
texel alignment, generate stabilized projection boundary;Construct the
light source view matrix and orthogonal projection matrix of each
cascade, output two-dimensional array depth texture and uniform light buffer object;In the fragment stage, according to the depth and normal, calculate main
cascade index and offset, use stabilized PCF sampling and rotation distribution mode, improve anti-
jitter ability;Using
screen space Bayer threshold and normalized distance calculation fusion weight, realize cross-
cascade smooth transition;Finally, get stable shadow rendering output.The application has the advantages of high rendering stability, natural boundary transition and significant anti-
jitter effect, and is suitable for multi-cascade, multi-light large-scale scene real-time shadow rendering.