Welcome, Guest.
Username: Password: Remember me

TOPIC: Pass uniforms to shader before preprocessor

Pass uniforms to shader before preprocessor 1 year 4 weeks ago #1

  • Marty McFly
  • Marty McFly's Avatar
  • Offline
  • We've tried nothing and we're all out of ideas!
  • Posts: 938
  • Thank you received: 943
Hey,
not sure if this is possible or not, but there could be a handier way to handle preprocessor options. Currently you have to manually type them into the respective box in the UI.
Using uniforms such as booleans in the preprocessor, it ends up using the default value declared in the shaderfile. But what if directing the user settings from the ini is handled before the preprocessor does its text stitching? That way the preprocessor uses the current setting you use and after next reload, your setting is active. You can control the whole shader just with the settings tab, no need to manually type in the preprocessor definitions in the box.
Imho this is more user friendly than the current solution. ENBSeries does the same for internal shaders, however this doesn't work for the external fx files.
Opinions?
Last Edit: 1 year 4 weeks ago by Marty McFly.
The administrator has disabled public write access.

Pass uniforms to shader before preprocessor 1 year 4 weeks ago #2

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2906
  • Thank you received: 1683
There is no way for ReShade to know which preprocessor directives exist as options. Also the preprocessor is invoked during compilation which happens before the UI is loaded, on startup. Changing an option would need a recompile.
Cheers, crosire =)
The administrator has disabled public write access.

Pass uniforms to shader before preprocessor 1 year 4 weeks ago #3

  • Marty McFly
  • Marty McFly's Avatar
  • Offline
  • We've tried nothing and we're all out of ideas!
  • Posts: 938
  • Thank you received: 943
Yes, I'm aware that changes still need recompilation. It's just that you could tweak in settings area and press reload instead of manually inserting those preprocessor options into the UI. As I have no insight how ENB works internally, what would you say how that works?
The administrator has disabled public write access.

Pass uniforms to shader before preprocessor 1 year 4 weeks ago #4

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2906
  • Thank you received: 1683
ENB knows exactly which preprocessor defines its shaders has. ReShade does not.
Cheers, crosire =)
Last Edit: 1 year 4 weeks ago by crosire.
The administrator has disabled public write access.

Pass uniforms to shader before preprocessor 1 year 4 weeks ago #5

  • Marty McFly
  • Marty McFly's Avatar
  • Offline
  • We've tried nothing and we're all out of ideas!
  • Posts: 938
  • Thank you received: 943
Ah I see. Alright, then forget I've asked. On another note, where did the tracelog feature go?
The administrator has disabled public write access.

Pass uniforms to shader before preprocessor 1 year 3 weeks ago #6

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2906
  • Thank you received: 1683
Was removed. It does log everything by default now.
Cheers, crosire =)
The administrator has disabled public write access.