1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-05-19 07:34:08 +00:00

rogueviz::snow:: hybrid geometries

This commit is contained in:
Zeno Rogue 2020-04-01 11:28:06 +02:00
parent f5ce50cc9e
commit 94be9c850c

View File

@ -10,7 +10,9 @@
* The snow_lambda parameter gives the expected number of snowballs per cell. * The snow_lambda parameter gives the expected number of snowballs per cell.
* (The number in every region has Poisson distribution with mean proportional to its area.) * (The number in every region has Poisson distribution with mean proportional to its area.)
* *
* Not implemented for: product * Freezes for tessellations with ideal vertices
*
*
* *
**/ **/
@ -53,6 +55,13 @@ transmatrix random_snow_matrix(cell *c) {
h[2] = -h[2]; h[2] = -h[2];
return rgpushxto0(h); return rgpushxto0(h);
} }
else if(prod) {
transmatrix T = PIU(random_snow_matrix(c));
return mscale(T, (randd() - .5) * cgi.plevel);
}
else if(hybri && !prod) {
return rots::lift_matrix(PIU(random_snow_matrix(c))); // * zpush((randd() - .5) * cgi.plevel);
}
else if(nonisotropic || bt::in()) { else if(nonisotropic || bt::in()) {
int co = bt::expansion_coordinate(); int co = bt::expansion_coordinate();