我正在尝试稳定我的3D渲染器中的阴影。我正在使用CSM。这是我得到的代码,没有尝试稳定。世界空间中投影的大小至少应该保持不变:voidSkyLight::update(){//directionisthedirectionthatthelightisfacingvec3tangent=sq::make_tangent(direction);for(inti=0;i&csm=camera->csmArr[i];//calculatestheboundingboxcentreofthefrustumvec3frusCentre=sq::calc_frusCentre(csm.second)