mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-01 18:27:55 +00:00
improved detailed_shader
This commit is contained in:
@@ -845,6 +845,11 @@ int read_cheat_args() {
|
|||||||
glhr::debug_gl = true;
|
glhr::debug_gl = true;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
else if(argis("-dsgl")) {
|
||||||
|
#if CAP_GL
|
||||||
|
detailed_shader = true;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
else if(argis("-mgen-off")) {
|
else if(argis("-mgen-off")) {
|
||||||
PHASEFROM(3);
|
PHASEFROM(3);
|
||||||
cheat();
|
cheat();
|
||||||
|
4
glhr.cpp
4
glhr.cpp
@@ -510,8 +510,8 @@ EX void set_modelview(const glmatrix& modelview) {
|
|||||||
auto& cur = current_glprogram;
|
auto& cur = current_glprogram;
|
||||||
if(!cur) return;
|
if(!cur) return;
|
||||||
|
|
||||||
if(detailed_shader) println(hlog, "\n*** ENABLING MODELVIEW:\n", modelview.as_stdarray());
|
if(detailed_shader) println(hlog, "*** ENABLING MODELVIEW:", kz(modelview.as_stdarray()));
|
||||||
if(detailed_shader) println(hlog, "\n*** ENABLING PROJECTION:\n", projection.as_stdarray());
|
if(detailed_shader) println(hlog, "*** ENABLING PROJECTION:", kz(projection.as_stdarray()));
|
||||||
|
|
||||||
if(using_eyeshift) {
|
if(using_eyeshift) {
|
||||||
glmatrix mvp = modelview * eyeshift;
|
glmatrix mvp = modelview * eyeshift;
|
||||||
|
Reference in New Issue
Block a user