Unscaled Time node in a shader graph?!?!

Hello, I’m using a “Time” node in my shader graph, but basically, it all stops when I pause the game (which is obvious, since I change Time.timeScale to 0).

I’m also specifically using the “Sine time”. Please, can anyone help me with this?
One of the workarounds could be manually computing it and setting as a global variable, but I’m trying to avoid things like that every frame.

Maybe something like a custom hlsl or a sub-graph could do the job or smth?

image

I ended up creating a custom hlsl include file + a sub-graph and a “ShaderVariableManager”

Time.hlsl
Sub-graph image
image