1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

arrows from arrow traps now visible in 3D

This commit is contained in:
Zeno Rogue 2019-06-18 01:45:52 +02:00
parent 52a3fcf86f
commit 524982605e

View File

@ -230,7 +230,9 @@ void drawArrowTraps() {
transmatrix& tv = u ? t1 : t0; transmatrix& tv = u ? t1 : t0;
hyperpoint trel = inverse(tu) * tC0(tv); hyperpoint trel = inverse(tu) * tC0(tv);
transmatrix tpartial = tu * rspintox(trel) * xpush(hdist0(trel) * tt / 401.0); transmatrix tpartial = tu * rspintox(trel) * xpush(hdist0(trel) * tt / 401.0);
queuepoly(tpartial * ypush(.05), cgi.shTrapArrow, 0xFFFFFFFF); tpartial = tpartial * ypush(.05);
if(DIM == 3) tpartial = tpartial * cspin(1, 2, M_PI/2);
queuepoly(tpartial, cgi.shTrapArrow, 0xFFFFFFFF);
} }
} }
#endif #endif