Need to combine two depth buffers in Nascar Racing 2003

More
1 year 6 months ago - 1 year 6 months ago #1 by Skynet Need to combine two depth buffers in Nascar Racing 2003 was created by Skynet
Hi everybody,
I am ReShading Nascar Racing 2003 and it seems that the game uses two depth buffers.
Leaving everything unchecked in the DX9 tab, i get this buffer (cockpit of the car):


Enabling Copy depth buffer before clear operations I get this other one:
https://imgur.com/4scLL9J

I need to merge them both in order to have some shaders using depth buffer to work correclty, basically the first one multiplied over the second.
Would it be possible in some way? Using ReShade 4.9.1.
Thanks.
Last edit: 1 year 6 months ago by Skynet.

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago - 1 year 5 months ago #2 by Daemonjax Replied by Daemonjax on topic Need to combine two depth buffers in Nascar Racing 2003
Not 100% sure, but I think you'd have to modify the source code for reshade to expose two depth buffers to the shaders, recompile, then modify each shader that needs depth buffer access to combine the two depth pixels (one from each depth buffer) appropriately when sampled.

Not impossible, but probably harder than you hoped.
Last edit: 1 year 5 months ago by Daemonjax.

Please Log in or Create an account to join the conversation.

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.