System Time/Date Shader

  • Sh1nRa358
  • Topic Author
More
8 years 4 months ago - 8 years 4 months ago #1 by Sh1nRa358 System Time/Date Shader was created by Sh1nRa358
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: 8 years 4 months ago by Sh1nRa358.

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

  • crosire
More
8 years 4 months ago #2 by crosire Replied by crosire on topic System Time/Date Shader
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

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

  • v00d00m4n
More
8 years 4 months ago #3 by v00d00m4n Replied by v00d00m4n on topic System Time/Date Shader
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.

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

  • Sh1nRa358
  • Topic Author
More
8 years 4 months ago - 8 years 4 months ago #4 by Sh1nRa358 Replied by Sh1nRa358 on topic System Time/Date Shader
@Crosire: Cool. How would I link that to a hotkey? And what about the other customizations for it.
Last edit: 8 years 4 months ago by Sh1nRa358.

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

  • crosire
More
8 years 4 months ago - 8 years 4 months ago #5 by crosire Replied by crosire on topic System Time/Date Shader

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.
Last edit: 8 years 4 months ago by crosire.

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

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.