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:
parent
665d52eeae
commit
72b7cffcaf
@ -350,7 +350,7 @@ shared_ptr<glhr::GLprogram> write_shader(flagtype shader_flags) {
|
|||||||
if(shader_flags & GF_LEVELS) vmain += "vPos = t;\n";
|
if(shader_flags & GF_LEVELS) vmain += "vPos = t;\n";
|
||||||
if(treset) vmain += "t[3] = 1.0;\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;";
|
vmain += "t = uPP * t;", vsh += "uniform mediump mat4 uPP;";
|
||||||
/* panini */
|
/* panini */
|
||||||
vmain += panini_shader();
|
vmain += panini_shader();
|
||||||
|
Loading…
Reference in New Issue
Block a user