libplacebo
libplacebo copied to clipboard
Is it possible to add an global variable `clock`/`time` for shader ?
https://libplacebo.org/custom-shaders/#shaders
I could use int frame to implement the similar effect in my shader. But it doesn't work for the image.
I wish the value of clock will increase 1 each second and reset to 0 after loading the new file.
In mpv there is PTS param set on every frame to current time, see https://mpv.io/manual/master/#options-pts. Do you need more?
It doesn't work for the image neither.