1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-07 09:13:02 +00:00

hemisphere model

This commit is contained in:
Zeno Rogue
2018-03-24 13:26:16 +01:00
parent 83b9e161ec
commit 74cc23f1c2
5 changed files with 48 additions and 7 deletions

View File

@@ -452,7 +452,7 @@ void animallegs(const transmatrix& V, eMonster mo, int col, double footphase) {
void ShadowV(const transmatrix& V, const hpcshape& bp, int prio) {
#if CAP_POLY
if(mmspatial) {
if(pmodel == mdHyperboloid || pmodel == mdBall)
if(pmodel == mdHyperboloid || pmodel == mdBall || pmodel == mdHemisphere)
return; // shadows break the depth testing
dynamicval<int> p(poly_outline, OUTLINE_TRANS);
queuepolyat(V, bp, SHADOW_MON, prio);
@@ -3038,7 +3038,7 @@ bool noAdjacentChasms(cell *c) {
}
void floorShadow(cell *c, const transmatrix& V, int col, bool warp) {
if(pmodel == mdHyperboloid || pmodel == mdBall)
if(pmodel == mdHyperboloid || pmodel == mdBall || pmodel == mdHemisphere)
return; // shadows break the depth testing
if(shmup::on || nonbitrunc) warp = false;
dynamicval<int> p(poly_outline, OUTLINE_TRANS);