Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I upgraded my application to DirectX9 and my hardware shadow maps no longer work! Whats up?

0
Posted

I upgraded my application to DirectX9 and my hardware shadow maps no longer work! Whats up?

0

We’ve changed the behavior of hardware shadow maps between the DirectX8 and DirectX9 interfaces. In DirectX8, you’re required to scale the interpolated z component (that will be compared with the value in the shadow map) by the bit depth of the shadow map itself. Starting with the DirectX9 interfaces, we’ve changed this behavior to no longer require this scale, so the z value should be in the range [0..1], regardless of bit depth. Basically, we wanted to implement this new cleaner behavior, but didn’t want to break shipping apps that rely on the old behavior, so we changed it only for the new DX9 interfaces.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123