Skip to content

Instantly share code, notes, and snippets.

@dontdieych
Forked from bjin/acme-0.5x.hook
Created September 28, 2025 14:46
Show Gist options
  • Select an option

  • Save dontdieych/7be10f472c310b26be091c2d94b01669 to your computer and use it in GitHub Desktop.

Select an option

Save dontdieych/7be10f472c310b26be091c2d94b01669 to your computer and use it in GitHub Desktop.
simple 0.5x prescaler for mpv, best combined with "--cscale=bilinear --scaler-resizes-only --window-scale=0.5"
//!DESC acme-0.5x
//!HOOK LUMA
//!BIND HOOKED
//!WIDTH HOOKED.w 2 /
//!HEIGHT HOOKED.h 2 /
//!WHEN HOOKED.w 2 % ! HOOKED.h 2 % ! *
//!OFFSET 0.25 0.25
vec4 hook() {
return HOOKED_texOff(vec2(-0.25,-0.25));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment