mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-12 18:30:34 +00:00
3d:: auto-rotate pipe for nice shading
This commit is contained in:
parent
43ff375435
commit
6c4a53c001
@ -3987,7 +3987,8 @@ EX void gridline(const shiftmatrix& V1, const hyperpoint h1, const shiftmatrix&
|
|||||||
if(WDIM == 3 && fat_edges) {
|
if(WDIM == 3 && fat_edges) {
|
||||||
shiftmatrix T = V1 * rgpushxto0(h1);
|
shiftmatrix T = V1 * rgpushxto0(h1);
|
||||||
transmatrix S = rspintox(inverse_shift(T, V2) * h2);
|
transmatrix S = rspintox(inverse_shift(T, V2) * h2);
|
||||||
auto& p = queuepoly(T * S, cgi.generate_pipe(d, vid.linewidth), col);
|
transmatrix U = rspintoc(inverse_shift(T*S, shiftless(C0)), 2, 1) * cspin(1, 2, 180*degree);
|
||||||
|
auto& p = queuepoly(T * S * U, cgi.generate_pipe(d, vid.linewidth), col);
|
||||||
p.intester = xpush0(d/2);
|
p.intester = xpush0(d/2);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user