mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-11-01 06:23:00 +00:00 
			
		
		
		
	fixed drawing warped water on spheres
This commit is contained in:
		| @@ -3107,7 +3107,7 @@ void plainfloor(cell *c, bool warp, const transmatrix &V, int col, int prio) { | ||||
|       } | ||||
|     else { | ||||
|       auto si = patterns::getpatterninfo(c, 0, 0); | ||||
|       queuepolyat(V * applyPatterndir(c, si), shTriheptaFloor[sphere ? ctof(c) : si.id], col, prio); | ||||
|       queuepolyat(V * applyPatterndir(c, si), shTriheptaFloor[/*sphere ? ctof(c) :*/ si.id], col, prio); | ||||
|       } | ||||
|     } | ||||
|   else if(is_nice_dual(c)) { | ||||
| @@ -4662,6 +4662,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) { | ||||
|       int fd0 = fd ? fd-1 : 0; | ||||
|        | ||||
|       qfi.shape = &getSeabed(*qfi.shape); | ||||
|       // this draws the water surface | ||||
|       warpfloor(c, (*Vdp), darkena(fcol, fd0, 0x80), PPR_LAKELEV, isWarped(c)); | ||||
|       } | ||||
|      | ||||
|   | ||||
| @@ -1342,7 +1342,8 @@ void buildpolys() { | ||||
|     trihepta0 = trihepta1 = crossf * 1.35 / 2; | ||||
|  | ||||
|   if(sphere&&S7==3&&!gp::on) trihepta0 *= 1.3, trihepta1 *= 1.6; | ||||
|   if(sphere&&S3==3&&gp::on) trihepta1 *= whatever; | ||||
|  | ||||
|   if(sphere&&gp::on) trihepta1 *= 1.4; | ||||
|  | ||||
|   int tshift0 = (a4?S14:0); | ||||
|   int tshift1 = (td + (!(S7&1))) ? S6:0; // +S6+(a4&(S7&1)?S6:0); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue