mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-28 05:22:48 +00:00
fixed z-fighting when drawing Onyx in 3D
This commit is contained in:
parent
a5a9104abf
commit
b931e5e333
@ -912,8 +912,12 @@ EX bool drawItemType(eItem it, cell *c, const transmatrix& V, color_t icol, int
|
|||||||
|
|
||||||
queuepolyat(V2, *xsh, darkena(icol, 0, alpha), pr);
|
queuepolyat(V2, *xsh, darkena(icol, 0, alpha), pr);
|
||||||
|
|
||||||
if(it == itZebra)
|
if(it == itZebra) {
|
||||||
queuepolyat(Vit * spinptick(1500, .5/(ct6+6)), *xsh, darkena(0x202020, 0, hidden ? 0x40 : 0xF0), PPR::ITEMb);
|
transmatrix Vx = Vit * spinptick(1500, .5/(ct6+6));
|
||||||
|
if(GDIM == 3)
|
||||||
|
Vx = Vx * cpush(2, -1e-3);
|
||||||
|
queuepolyat(Vx, *xsh, darkena(0x202020, 0, hidden ? 0x40 : 0xF0), PPR::ITEMb);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(xch == 'o' || it == itInventory) {
|
else if(xch == 'o' || it == itInventory) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user