mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 04:39:34 +00:00
Update upscale_spline36.fsh
This commit is contained in:
parent
3bf0c0088e
commit
c9d658b261
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user