From cf858436d294bd44d2f1d1120b6704e2bab66fa2 Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Sun, 11 Aug 2024 20:26:12 +0200 Subject: [PATCH] Fix video background miss alignment --- openVulkanoCpp/Shader/background.vert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openVulkanoCpp/Shader/background.vert b/openVulkanoCpp/Shader/background.vert index 5ccb9c3..b1cf56a 100644 --- a/openVulkanoCpp/Shader/background.vert +++ b/openVulkanoCpp/Shader/background.vert @@ -40,7 +40,7 @@ void main() { // Calculate the scaling factors for width and height float height = realCam.height; - float realScale = realCam.intrinsic[1][1] / height; + float realScale = height / realCam.intrinsic[1][1]; float realAspect = height / realCam.width; float scaleY = realScale / cam.scaleFactor; float scaleX = scaleY / (cam.aspect * realAspect);