Repository navigation
Switch shaders from the menu, without input.conf bindings.
Install or upgrade: unzip hookdial-v0.1.2.zip into mpv's scripts folder, replacing the old scripts/hookdial. It needs mpv 0.39 or newer.
New
- Shader picker. In the Alt+h menu, c changes the selected row's shader to another from your shaders folder, a adds one after the others, and x removes the selected row's shader. The list shows
~~/shaders(theshader_diroption) and one level of subfolders, so packs like Anime4K show up; type to filter, and shaders already loaded are marked. To switch without opening the menu, bindscript-binding hookdial/pickin input.conf (for exampleAlt+p script-binding hookdial/pick): the shader you pick replaces all loaded shaders, and "(no shader)" turns them off. See "Switching shaders" in the manual. - For other scripts: each
#defineinuser-data/hookdial/shadersnow has atype,"int"or"float"(api.md). The change is additive;api_versionstays 1.
For contributors
tests/tools/cost.luameasures each shader's GPU cost from mpv's own pass timers.- The census tool now reports shaders whose passes never ran as
notruninstead of counting them as loaded, and documents how to check prescalers on an enlarged video.