I recently implemented the CSM in my engine. When I ran it in my laptop(AMD Vega GFX on Win 10), the shadows are rendered correctly. The same code w/o any modification, I ran it in my desktop(NVIDIA on Win 7), the shadows are not rendered correctly in fact they are missing. I didn't have time to isolate the problem. Why does that happen? Here's some codes.
void CSM_GetLightViewProjection(int Cascade_Index, Camera *ActiveCamera, XMMATRIX &LVP)
{
XMFLOAT3 FrustumCorners[] = { XMFLOAT3(-1, 1, 0 ),
XMFLOAT3( 1, 1, 0 ),
XMFLOAT3( 1, -1, 0 ),
XMFLOAT3(-1, -1, 0 ),
XMFLOAT3 …