mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-03 06:54:08 +00:00
2D3D:: display Rose waves
This commit is contained in:
parent
73a742119d
commit
fa06306ef9
24
graph.cpp
24
graph.cpp
@ -3717,7 +3717,7 @@ void setcolors(cell *c, color_t& wcol, color_t& fcol) {
|
|||||||
fcol = wcol;
|
fcol = wcol;
|
||||||
} */
|
} */
|
||||||
|
|
||||||
if(GDIM == 2) {
|
if(WDIM == 2) {
|
||||||
int rd = rosedist(c);
|
int rd = rosedist(c);
|
||||||
if(rd == 1)
|
if(rd == 1)
|
||||||
wcol = gradient(0x804060, wcol, 0,1,3),
|
wcol = gradient(0x804060, wcol, 0,1,3),
|
||||||
@ -5482,9 +5482,27 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// draw the ceiling
|
// draw the ceiling
|
||||||
if(WDIM == 2 && GDIM == 3)
|
if(WDIM == 2 && GDIM == 3) {
|
||||||
draw_ceiling(c, V, fd, fcol, wcol);
|
draw_ceiling(c, V, fd, fcol, wcol);
|
||||||
|
|
||||||
|
int rd = rosedist(c);
|
||||||
|
if(rd) {
|
||||||
|
dynamicval<qfloorinfo> qfi2(qfi, qfi);
|
||||||
|
qfi.fshape = &shRoseFloor;
|
||||||
|
int t = isize(ptds);
|
||||||
|
color_t rcol;
|
||||||
|
if(rd == 1) rcol = 0x80406040;
|
||||||
|
if(rd == 2) rcol = 0x80406080;
|
||||||
|
forCellIdEx(c2, i, c)
|
||||||
|
if(rosedist(c2) < rd)
|
||||||
|
placeSidewall(c, i, SIDE_WALL, V, rcol);
|
||||||
|
for(int i=t; i<isize(ptds); i++) {
|
||||||
|
auto p = dynamic_cast<dqi_poly*>(&*(ptds[i]));
|
||||||
|
if(p) p->prio = PPR::TRANSPARENT_WALL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// walls
|
// walls
|
||||||
|
|
||||||
#if CAP_EDIT
|
#if CAP_EDIT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user