mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	sky:: fixed for changed depth
This commit is contained in:
		
							
								
								
									
										7
									
								
								sky.cpp
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								sky.cpp
									
									
									
									
									
								
							| @@ -118,8 +118,8 @@ void compute_skyvertices(const vector<sky_item>& sky) { | |||||||
|         darkena(si.skycolor, 0, 0xFF) |         darkena(si.skycolor, 0, 0xFF) | ||||||
|         ); |         ); | ||||||
|    |    | ||||||
|   hyperpoint skypoint = cpush0(2, cgi.SKY); |   hyperpoint skypoint = cpush0(2, cgi.SKY + cgi.emb->center_z()); | ||||||
|   hyperpoint hellpoint = cpush0(2, cgi.HELL); |   hyperpoint hellpoint = cpush0(2, cgi.HELL + cgi.emb->center_z()); | ||||||
|    |    | ||||||
|   vector<glhr::colored_vertex> this_poly; |   vector<glhr::colored_vertex> this_poly; | ||||||
|  |  | ||||||
| @@ -351,7 +351,8 @@ EX void draw_star(const shiftmatrix& V, const hpcshape& sh, color_t col, ld rev | |||||||
|   if(!do_draw_stars(rev)) return; |   if(!do_draw_stars(rev)) return; | ||||||
|  |  | ||||||
|   ld val = cgi.STAR; |   ld val = cgi.STAR; | ||||||
|   if(rev) val = -val; |   if(rev) val = cgi.FLOOR * 2 - val; | ||||||
|  |   val += cgi.emb->center_z(); | ||||||
|  |  | ||||||
|   auto V1 = V; be_euclidean_infinity(V1.T); |   auto V1 = V; be_euclidean_infinity(V1.T); | ||||||
|   queuepolyat(V1 * zpush(val), sh, col, PPR::SKY); |   queuepolyat(V1 * zpush(val), sh, col, PPR::SKY); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue