Skip to content

Commit

Permalink
Adding half-pixel shift to the downscaling step
Browse files Browse the repository at this point in the history
Should match chroma on most videos now, making the shaders a bit better.
  • Loading branch information
Artoriuz committed Nov 1, 2024
1 parent cf703ff commit dfb96bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FastBilateral.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
//!DESC Fast Bilateral (Downscaling Luma)

vec4 hook() {
return LUMA_texOff(0.0);
return LUMA_texOff(vec2(-0.5, 0.0));
}

//!PARAM distance_coeff
Expand Down
2 changes: 1 addition & 1 deletion JointBilateral.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
//!DESC Joint Bilateral (Downscaling Luma)

vec4 hook() {
return LUMA_texOff(0.0);
return LUMA_texOff(vec2(-0.5, 0.0));
}

//!PARAM distance_coeff
Expand Down

0 comments on commit dfb96bb

Please sign in to comment.