1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-04 22:20:22 +00:00

vo_gpu: expose texture_off to user shader

It will provide low level access to coordinate mapping other than
texmap().
This commit is contained in:
Bin Jin 2019-03-12 08:54:06 +00:00 committed by sfan5
parent ae1c489b31
commit f2119d9d88

View File

@ -1347,6 +1347,7 @@ static void hook_prelude(struct gl_video *p, const char *name, int id,
GLSLHF("#define %s_pos texcoord%d\n", name, id);
GLSLHF("#define %s_size texture_size%d\n", name, id);
GLSLHF("#define %s_rot texture_rot%d\n", name, id);
GLSLHF("#define %s_off texture_off%d\n", name, id);
GLSLHF("#define %s_pt pixel_size%d\n", name, id);
GLSLHF("#define %s_map texmap%d\n", name, id);
GLSLHF("#define %s_mul %f\n", name, img.multiplier);