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:
parent
ae1c489b31
commit
f2119d9d88
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user