]> git.xonotic.org Git - xonotic/darkplaces.git/commit
Don't set MATERIALFLAG_NOSHADOW on SKY materials. They need to cast shadows to preve...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Mar 2018 19:04:22 +0000 (19:04 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Mar 2018 19:04:22 +0000 (19:04 +0000)
commitbc190818e5b0a723ed94f270334acb7325f4684e
treee59fdac579fd43ea62b60215fd597e31524675d1
parentca4d37309cf7721bd7fd42d2a95ac5db7d057d01
Don't set MATERIALFLAG_NOSHADOW on SKY materials.  They need to cast shadows to prevent issues in e1m7 and other cases where sky occludes light bleed into other areas.

But when loading Q1BSP, set MATERIALFLAG_NOSHADOW on SKY if it has non-SOLID contents behind it, this supports the e1m5 logo shadow trick.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12346 d7cf8633-e32d-0410-b094-e92efae38249
model_brush.c
model_shared.c
model_shared.h