Skip to content

Commit

Permalink
Merge pull request #4 from astrofra/master
Browse files Browse the repository at this point in the history
Fixed an computation issue in the upsampler ratio.
  • Loading branch information
astrofra authored Nov 23, 2021
2 parents eb23a70 + 7ed0414 commit 5ab3221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/core/shader/aaa_upsample_fs.sc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ float gaussian(float v, float sigma) {
}

void main() {
vec2 ratio = floor(textureSize(u_attr_hi, 0).xy / textureSize(u_attr_lo, 0).xy);
vec2 ratio = round(textureSize(u_attr_hi, 0).xy / textureSize(u_attr_lo, 0).xy);
vec2 pixel = gl_FragCoord.xy / ratio;
vec2 tmp = floor(pixel-vec2_splat(0.5)) + vec2_splat(0.5);
ivec2 coord = ivec2(tmp);
Expand Down

0 comments on commit 5ab3221

Please sign in to comment.