Skip to content

Commit

Permalink
Fixed an computation issue in the upsampler ratio.
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofra committed Nov 23, 2021
1 parent eb23a70 commit 7ed0414
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 7ed0414

Please sign in to comment.