mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 07:33:46 +01:00
gl_video: change a GLSL statement
This might be better with dumb shader compilers, which won't vectorize this to a single vector-division, assuming the hardware does have such an instruction. Affects "bicubic_fast" scale mode only.
This commit is contained in:
parent
e08bf272ee
commit
5d0c4b6ac3
@ -150,7 +150,7 @@ vec4 calcweights(float s) {
|
||||
vec4 t = vec4(-0.5, 0.1666, 0.3333, -0.3333) * s + vec4(1, 0, -0.5, 0.5);
|
||||
t = t * s + vec4(0, 0, -0.5, 0.5);
|
||||
t = t * s + vec4(-0.6666, 0, 0.8333, 0.1666);
|
||||
vec2 a = vec2(1 / t.z, 1 / t.w);
|
||||
vec2 a = vec2(1, 1) / vec2(t.z, t.w);
|
||||
t.xy = t.xy * a + vec2(1, 1);
|
||||
t.x = t.x + s;
|
||||
t.y = t.y - s;
|
||||
|
Loading…
Reference in New Issue
Block a user