1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-06-27 15:32:53 +00:00

rogueviz::snow:: disable texture

This commit is contained in:
Zeno Rogue 2020-03-31 22:14:38 +02:00
parent a2f7c90a19
commit 00735cac90

View File

@ -23,6 +23,9 @@ bool snow_test = false;
/* a funny glitch */ /* a funny glitch */
bool snow_glitch = false; bool snow_glitch = false;
/* disable textures */
bool snow_texture = true;
int snow_shape = 0; int snow_shape = 0;
map<cell*, vector<transmatrix> > matrices_at; map<cell*, vector<transmatrix> > matrices_at;
@ -110,8 +113,10 @@ bool draw_snow(cell *c, const transmatrix& V) {
} }
poly_outline = 0xFF; poly_outline = 0xFF;
for(auto& T: matrices_at[c]) for(auto& T: matrices_at[c]) {
queuepoly(V * T, shapeid(snow_shape), 0xFFFFFFFF).tinf = nullptr; auto& p = queuepoly(V * T, shapeid(snow_shape), 0xFFFFFFFF);
if(!snow_texture) p.tinf = nullptr;
}
return false; return false;
} }
@ -137,6 +142,9 @@ auto hchook = addHook(hooks_drawcell, 100, draw_snow)
else if(argis("-snow-test")) { else if(argis("-snow-test")) {
snow_test = true; snow_test = true;
} }
else if(argis("-snow-no-texture")) {
snow_texture = false;
}
else if(argis("-snow-glitch")) { else if(argis("-snow-glitch")) {
snow_test = true; snow_test = true;
} }