1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-19 07:20:25 +00:00

do not use Panini while panini off

This commit is contained in:
Zeno Rogue 2020-11-19 18:17:49 +01:00
parent 665d52eeae
commit 72b7cffcaf

View File

@ -350,7 +350,7 @@ shared_ptr<glhr::GLprogram> write_shader(flagtype shader_flags) {
if(shader_flags & GF_LEVELS) vmain += "vPos = t;\n";
if(treset) vmain += "t[3] = 1.0;\n";
if(shader_flags & SF_PERS3) {
if((shader_flags & SF_PERS3) && panini_alpha) {
vmain += "t = uPP * t;", vsh += "uniform mediump mat4 uPP;";
/* panini */
vmain += panini_shader();