Open AWBuchanan7 opened 6 years ago
In AL+, OpenGL is really just used to display a 2D texture produced from a software renderer, so reshade can't really do anything beyond simple 2D operations.
Oh I see, that's kind of too bad, I was curious to see what some of the effects might look like applied to unfiltered output. I wonder if reshade could be modified to support what AL+ does then? I'll admit I don't have any real understanding of reshade or AL+ but surely if AL+ does have a depth buffer, then it's just a matter of getting the depth buffer into reshade? Or is using OpenGL a hard requirement for reshade to be able to work with the depth buffer as well?
EDIT: Actually, would it be possible for AL to just write something to the OpenGL z buffer?
@ata4 I'm not sure if you have a particular interest in this, but I've forked your project to see if I can populate the z buffer by facilitating the values normally generated in "VI_MODE_DEPTH" into it — my issue is that I have no idea what I'm doing, the vast majority of this repo and even the basics of OpenGL are brand new to me but I figure if I can just put together some spaghetti code that works then I can clean up from there to a functional point. If you would be willing to take a look at what I've done (here is the comparison) I would super appreciate any pointers you could offer, in the meantime I'll keep trying to figure it out though!
EDIT:
It seems like I'm really close to getting this working! Here's what the depth map (rendered by a ReShade shader) looks like right now:
As you can see, it's janky right now but with a little work I think I can get this working 100%.
Hm, that's an interesting approach. I didn't consider that it's possible to just import the depth buffer of the software renderer to OpenGL. I'll take a look at the PR you've created, but it may take some time to review the changes.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
So I realized reshade's opengl hooks work with angrylion and have been having fun playing around with shaders (scanlines anyone?) however it seems like a lot of shaders reshade offers don't work because it doesn't seem to detect anything for the depth map which strikes me as strange because I can literally select "depth" as an output mode.
Would you happen to have a take on why reshade might not be fully working with angrylion?
EDIT: To be clear, trying to use shaders that rely on the depth buffer are rendering all white, which from what I've read means that reshade is trying to read the wrong buffer.