From f2119d9d889913ab07dabc797d0288ca996d47d8 Mon Sep 17 00:00:00 2001 From: Bin Jin Date: Tue, 12 Mar 2019 08:54:06 +0000 Subject: vo_gpu: expose texture_off to user shader It will provide low level access to coordinate mapping other than texmap(). --- video/out/gpu/video.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out') 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); -- cgit v1.2.3