diff options
author | Bin Jin <bjin@ctrl-d.org> | 2019-03-12 08:54:06 +0000 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-06-06 20:01:56 +0200 |
commit | f2119d9d889913ab07dabc797d0288ca996d47d8 (patch) | |
tree | d058c7dea2c2e5e0587c08b423ba3a78813cef8a /video/out/gpu | |
parent | ae1c489b319eab1fe200200c39f58246de75a6f3 (diff) | |
download | mpv-f2119d9d889913ab07dabc797d0288ca996d47d8.tar.bz2 mpv-f2119d9d889913ab07dabc797d0288ca996d47d8.tar.xz |
vo_gpu: expose texture_off to user shader
It will provide low level access to coordinate mapping other than
texmap().
Diffstat (limited to 'video/out/gpu')
-rw-r--r-- | video/out/gpu/video.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index c1e4b8c48f..bc6c6f2cd5 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -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); |