1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 18:54:48 +00:00

fixed stereo_alpha in some geometries

This commit is contained in:
Zeno Rogue 2023-06-10 10:35:09 +02:00
parent 59dd09173a
commit aa729c912c

View File

@ -520,7 +520,9 @@ shared_ptr<glhr::GLprogram> 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";