mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-28 08:23:08 +00:00
shadows are now drawn or not correctly -- depending on model_needs_depth()
This commit is contained in:
1 parent
7687381e75
commit
ae257b952d
1 file changed
+2
-2
@@ -510,7 +510,7 @@ bool noshadow;
|
||||
#if CAP_SHAPES
|
||||
void ShadowV(const transmatrix& V, const hpcshape& bp, PPR prio) {
|
||||
if(mmspatial) {
|
||||
if(pmodel == mdHyperboloid || pmodel == mdBall || pmodel == mdHemisphere || noshadow)
|
||||
if(model_needs_depth() || noshadow)
|
||||
return; // shadows break the depth testing
|
||||
dynamicval<color_t> p(poly_outline, OUTLINE_TRANS);
|
||||
queuepolyat(V, bp, SHADOW_MON, prio);
|
||||
@@ -3338,7 +3338,7 @@ int wavephase;
|
||||
|
||||
#if CAP_SHAPES
|
||||
void floorShadow(cell *c, const transmatrix& V, color_t col) {
|
||||
if(pmodel == mdHyperboloid || pmodel == mdBall || pmodel == mdHemisphere || noshadow)
|
||||
if(model_needs_depth() || noshadow)
|
||||
return; // shadows break the depth testing
|
||||
dynamicval<color_t> p(poly_outline, OUTLINE_TRANS);
|
||||
if(qfi.shape) {
|
||||
|
||||
Reference in new issue
Block a user