"Send a signal" from host program?

  • Posts: 2
5 years 2 weeks ago #1 by Whirligig231
I'm currently working on a modification of an existing game and want to include ReShade for better graphics. (I'll be sure to look into the licensing details for this; if it's not possible to bundle ReShade with the mod, I'll just have to tell people to get it here, no big deal.)

Is there any way to send a signal to ReShade's shaders from the host program? That is, is there any way to change shader settings based on game logic?

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

  • Posts: 3741
5 years 2 weeks ago #2 by crosire
Not currently, but it's an interesting idea. Could be done by equiping ReShade with a programmable API.

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

  • Posts: 455
5 years 2 weeks ago #3 by Martigen

Whirligig231 wrote: I'm currently working on a modification of an existing game and want to include ReShade for better graphics. (I'll be sure to look into the licensing details for this; if it's not possible to bundle ReShade with the mod, I'll just have to tell people to get it here, no big deal.)

Is there any way to send a signal to ReShade's shaders from the host program? That is, is there any way to change shader settings based on game logic?

If you can write to a file from the mod, you can simply modify Reshade's settings files -- it automatically picks up when they change and re-initializes.

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

  • Posts: 3741
5 years 2 weeks ago #4 by crosire
True. But recompiling takes time and stalls the game, not necessarily something you want when triggering changes mid-game.

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

  • Posts: 2
5 years 2 weeks ago #5 by Whirligig231
Would it be possible to alter the shader code so that it depends on the color of e.g. the top-left pixel of the screen, then mask that pixel in a UI mask so that other shaders don't affect it, and then change that pixel in the game?

Another idea: could I simulate a key press from the game that controls the shader's toggle key?

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

  • Posts: 15
5 years 2 weeks ago #6 by Roxxtar

Whirligig231 wrote: Another idea: could I simulate a key press from the game that controls the shader's toggle key?


Check my topic below for info on how to do this:

reshade.me/forum/general-discussion/825-toggle-timeout

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