GameHash define

  • Posts: 13
4 years 11 months ago #1 by PetkaGtA
Just started to work on my ReShade mod, and got a little suggestion about presets. I'd like to have a define that has a current application name in it (hash for example), so for some games I could use different presets. :)

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

  • Posts: 3639
4 years 11 months ago #2 by crosire
Nice idea =).
Any naming suggestions/wishes? Something like one of these for instance:
  • __GAME__
  • __EXECUTABLE__
  • __APPLICATION__

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

  • Posts: 13
4 years 11 months ago #3 by PetkaGtA
I think __APPLICATION__ would be nice. Keep up the good work btw. :)
The following user(s) said Thank You: crosire

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

  • Posts: 3639
4 years 11 months ago #4 by crosire
Alright then (and thanks =) ). Available with the next update. Also added a field to the statistics overlay (#pragma reshade showstatistics) displaying its value.

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

  • Posts: 135
4 years 11 months ago #5 by jmp909
out of interest could you explain the specific purpose please?

are you intending to supply a single generic mod but with game specific functions included for multiple games?

thanks
j

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

  • Posts: 3639
4 years 11 months ago #6 by crosire

jmp909 wrote: out of interest could you explain the specific purpose please?

CeeJay just pointed out a useful one to me: There are a bunch of games where the depthbuffer is flipped horizontally. This is something ReShade cannot fix, because the depthbuffer is bound directly to the shader and it's impossible to figure out its direction. Now with this new define one can create a list of games where this is the case and then simply flip the depthbuffer in the shader again.
The following user(s) said Thank You: SpinelessJelly, brussell, jmp909

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

  • Posts: 290
4 years 11 months ago #7 by Aelius Maximus
Hi, did you code the implementation for petkagta DOF, if so, thank you for all your work, it is fantastic

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

  • Posts: 13
4 years 11 months ago #8 by PetkaGtA
Yep, but I'm just rewrited martinsh DoF to HLSL with some little fixes. Anyway now with ReShade released I can start to work on implementing my old, and writing my new shaders.

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

  • Posts: 209
4 years 11 months ago #9 by SunBroDave
Since you're adding id's for each game, would it be possible to implement a pshash system like with gedosato for applying effects before the hud is rendered?

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

  • Posts: 290
4 years 10 months ago - 4 years 10 months ago #10 by Aelius Maximus

PetkaGtA wrote: Yep, but I'm just rewrited martinsh DoF to HLSL with some little fixes. Anyway now with ReShade released I can start to work on implementing my old, and writing my new shaders.


That sounds great, i think the "martinsh/petkagta DOF are the best, can i get that rewrite anywhere?

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

  • Posts: 3639
4 years 10 months ago #11 by crosire
Added in 0.17.0.
The following user(s) said Thank You: PetkaGtA

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