mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-26 05:17:03 +00:00
rogueviz::snow:: disable texture
This commit is contained in:
parent
a2f7c90a19
commit
00735cac90
@ -23,6 +23,9 @@ bool snow_test = false;
|
||||
/* a funny glitch */
|
||||
bool snow_glitch = false;
|
||||
|
||||
/* disable textures */
|
||||
bool snow_texture = true;
|
||||
|
||||
int snow_shape = 0;
|
||||
|
||||
map<cell*, vector<transmatrix> > matrices_at;
|
||||
@ -110,8 +113,10 @@ bool draw_snow(cell *c, const transmatrix& V) {
|
||||
}
|
||||
|
||||
poly_outline = 0xFF;
|
||||
for(auto& T: matrices_at[c])
|
||||
queuepoly(V * T, shapeid(snow_shape), 0xFFFFFFFF).tinf = nullptr;
|
||||
for(auto& T: matrices_at[c]) {
|
||||
auto& p = queuepoly(V * T, shapeid(snow_shape), 0xFFFFFFFF);
|
||||
if(!snow_texture) p.tinf = nullptr;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
@ -137,6 +142,9 @@ auto hchook = addHook(hooks_drawcell, 100, draw_snow)
|
||||
else if(argis("-snow-test")) {
|
||||
snow_test = true;
|
||||
}
|
||||
else if(argis("-snow-no-texture")) {
|
||||
snow_texture = false;
|
||||
}
|
||||
else if(argis("-snow-glitch")) {
|
||||
snow_test = true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user