summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video_shaders.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gl_video_shaders.glsl')
-rw-r--r--video/out/gl_video_shaders.glsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/gl_video_shaders.glsl b/video/out/gl_video_shaders.glsl
index 7b6a1f07fa..11d2e94a61 100644
--- a/video/out/gl_video_shaders.glsl
+++ b/video/out/gl_video_shaders.glsl
@@ -71,6 +71,7 @@ vec3 bt2020_compand(vec3 v)
#endif
uniform mat3 transform;
+uniform vec3 translation;
uniform sampler3D lut_3d;
uniform mat3 cms_matrix; // transformation from file's gamut to bt.2020
@@ -81,7 +82,7 @@ in vec2 vertex_texcoord;
out vec2 texcoord;
void main() {
- vec3 position = vec3(vertex_position, 1);
+ vec3 position = vec3(vertex_position, 1) + translation;
#ifndef FIXED_SCALE
position = transform * position;
#endif