Welcome, Guest.
Username: Password: Remember me

TOPIC: System Time/Date Shader

System Time/Date Shader 1 year 5 days ago #1

  • Sh1nRa358
  • Sh1nRa358's Avatar
  • Offline
  • Posts: 113
  • Thank you received: 9
Can we get a system date and time shader? This would include the ability to configure:
-screen placement
-font used
-color used
-configurable hotkey to enable (will only show when this combo is pressed).
-transparency
-size (preferably percentage from resolution so that it'll be the same size no matter the resolution)

This would be useful so that ppl wouldn't have to minimize their game to check the time (assuming the game allows to be minimized). Cpu and Gpu temps would be good to put here as well.
Last Edit: 1 year 5 days ago by Sh1nRa358.
The administrator has disabled public write access.

System Time/Date Shader 1 year 5 days ago #2

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2451
  • Thank you received: 1391
You don't need a shader to display those (it's possible though, since ReShade exposes time and date as inputs to shaders which request them), ReShade has an option to display the time out of the box:
Simply add the following line to any of the shader or configuration files (does not matter where):
#pragma reshade showclock
Cheers, crosire =)
The administrator has disabled public write access.

System Time/Date Shader 1 year 1 day ago #3

  • v00d00m4n
  • v00d00m4n's Avatar
  • Offline
  • Posts: 44
  • Thank you received: 3
Hm, not sure about what here realy wanted, but i have another related request - can you please expose some variables for time?

I was going to make time adaptive effects, so that when its night time reshade brigthness would be reduced and at day time it will be boosted.

Also would be nice, if reshade would support some external dlls load method (like in Autoit for example) , to poll such dlls for some information, and store that as variable to use in shaders. For example i was going to play with xinput dll and use ministicks as controller for X,Y and triggers as controller for Z value to tweak some colors. There was also idea to use some api for sound monitoring, and make a visual feedback to simulate sound level mether in some stealth games that does not have one. There are so many possibilities if reshade could load dlls and poll them for some useful values. Or at least wmic polling support would be useful.
The administrator has disabled public write access.

System Time/Date Shader 1 year 1 day ago #4

  • Sh1nRa358
  • Sh1nRa358's Avatar
  • Offline
  • Posts: 113
  • Thank you received: 9
@Crosire: Cool. How would I link that to a hotkey? And what about the other customizations for it.
Last Edit: 1 year 1 day ago by Sh1nRa358.
The administrator has disabled public write access.

System Time/Date Shader 1 year 1 day ago #5

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2451
  • Thank you received: 1391
v00d00m4n wrote:
can you please expose some variables for time?
There are quite a number of possibilities already, see the REFERENCE.txt included in the latest download. To give a few examples (the variable name does not matter, information is requested from ReShade via the annotations between "<" and ">"):
uniform float myVarName1 < source = "frametime"; >; // Time in milliseconds it took for the last frame to complete.
uniform float4 myVarName2 < source = "date"; >; // float4(year, month (1 - 12), day of month (1 - 31), time in seconds)
uniform float myVarName3 < source = "timer"; >; // Timer counting time in milliseconds since game start.

Sh1nRa358 wrote:
@Crosire: Cool. How would I link that to a hotkey? And what about the other customizations for it.
There aren't any. It's a quick option. Anything custom would require writing of a shader.
Cheers, crosire =)
Last Edit: 1 year 1 day ago by crosire.
The administrator has disabled public write access.