Update upscale_spline36.fsh

This commit is contained in:
fp64 2022-06-03 17:56:55 -04:00 committed by GitHub
parent 3bf0c0088e
commit c9d658b261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
// Spline36 upscaling shader.
// See issue #3921
// Modified as per #15566
#ifdef GL_ES
precision mediump float;
@ -71,7 +72,7 @@ vec4 interpolateHorizontally(vec2 inputPos, ivec2 inputPosFloor, int dy) {
}
vec4 process(vec2 outputPos) {
vec2 inputPos = outputPos / u_texelDelta;
vec2 inputPos = outputPos / u_texelDelta - HALF_PIXEL;
ivec2 inputPosFloor = ivec2(inputPos);
// Vertical interporation
@ -117,4 +118,4 @@ vec4 process(vec2 outputPos) {
void main()
{
gl_FragColor.rgba = process(v_position);
}
}