libplacebo icon indicating copy to clipboard operation
libplacebo copied to clipboard

Is it possible to add an global variable `clock`/`time` for shader ?

Open hooke007 opened this issue 8 months ago • 2 comments

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.

hooke007 avatar Jul 01 '25 16:07 hooke007

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?

kasper93 avatar Jul 01 '25 16:07 kasper93

It doesn't work for the image neither.

hooke007 avatar Jul 01 '25 17:07 hooke007