mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	rogueviz::snow:: disable texture
This commit is contained in:
		| @@ -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; | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue