From aa729c912c9738c69ace910d11b2cd1fecf247da Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 10 Jun 2023 10:35:09 +0200 Subject: [PATCH] fixed stereo_alpha in some geometries --- shaders.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shaders.cpp b/shaders.cpp index 59316e09..ab705ff0 100644 --- a/shaders.cpp +++ b/shaders.cpp @@ -520,7 +520,9 @@ shared_ptr write_shader(flagtype shader_flags) { shader_flags |= SF_ORIENT; } else if((shader_flags & SF_PERS3) && stereo_alpha && !vrhr::rendering_eye()) { + vmain += "t = uPP * t;", vsh += "uniform mediump mat4 uPP;"; vmain += stereo_shader(); + shader_flags |= SF_ORIENT; } vmain += "gl_Position = uP * t;\n";