From 479d55de50906464fa993859ec877ef652131236 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 1 May 2020 15:03:10 +0200 Subject: Show video forward as set by steamvr, instead of showing it backwards --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 8f53ade..09151f6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1129,8 +1129,9 @@ bool CMainApplication::CreateAllShaders() "out vec2 v2UVcoords;\n" "void main()\n" "{\n" - " v2UVcoords = v2UVcoordsIn * vec2(0.5, 1.0) + vec2(texture_offset_x, 0.0);\n" - " gl_Position = matrix * (position + vec4(position_offset, 0.0));\n" + " v2UVcoords = vec2(1.0 - v2UVcoordsIn.x, v2UVcoordsIn.y) * vec2(0.5, 1.0) + vec2(texture_offset_x, 0.0);\n" + " vec4 inverse_pos = vec4(position.x, position.y, -position.z, position.w);\n" + " gl_Position = matrix * (inverse_pos + vec4(position_offset, 0.0));\n" "}\n", // Fragment Shader -- cgit v1.2.3