1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-31 01:37:57 +00:00

improved detailed_shader

This commit is contained in:
Zeno Rogue
2025-08-23 22:40:28 +02:00
parent bb3c80fb79
commit 6556f24243
2 changed files with 7 additions and 2 deletions

View File

@@ -845,6 +845,11 @@ int read_cheat_args() {
glhr::debug_gl = true;
#endif
}
else if(argis("-dsgl")) {
#if CAP_GL
detailed_shader = true;
#endif
}
else if(argis("-mgen-off")) {
PHASEFROM(3);
cheat();

View File

@@ -510,8 +510,8 @@ EX void set_modelview(const glmatrix& modelview) {
auto& cur = current_glprogram;
if(!cur) return;
if(detailed_shader) println(hlog, "\n*** ENABLING MODELVIEW:\n", modelview.as_stdarray());
if(detailed_shader) println(hlog, "\n*** ENABLING PROJECTION:\n", projection.as_stdarray());
if(detailed_shader) println(hlog, "*** ENABLING MODELVIEW:", kz(modelview.as_stdarray()));
if(detailed_shader) println(hlog, "*** ENABLING PROJECTION:", kz(projection.as_stdarray()));
if(using_eyeshift) {
glmatrix mvp = modelview * eyeshift;