Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 16874

CSM works fine on AMD GPU not on NVIDIA GPU

$
0
0

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 …

Viewing all articles
Browse latest Browse all 16874

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>