mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Polymodes: Don't test (!usemodels || md_tilehasmodel(picnum, pal) < 0) in eligible_for_tileshades (called only from getshadefactor) because getshadefactor is only called when a model is *not* being drawn, and therefore results in incorrect shading when drawing a tile with a model defined and models enabled to the screen or as a skybox.
git-svn-id: https://svn.eduke32.com/eduke32@5440 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
34bf6443ce
commit
d723316bf5
1 changed files with 1 additions and 2 deletions
|
@ -66,8 +66,7 @@ extern int32_t globalpal;
|
|||
// Compare with polymer_eligible_for_artmap()
|
||||
static inline int32_t eligible_for_tileshades(int32_t const picnum, int32_t const pal)
|
||||
{
|
||||
return (!usehightile || !hicfindsubst(picnum, pal)) &&
|
||||
(!usemodels || md_tilehasmodel(picnum, pal) < 0);
|
||||
return !usehightile || !hicfindsubst(picnum, pal);
|
||||
}
|
||||
|
||||
static inline float getshadefactor(int32_t const shade)
|
||||
|
|
Loading…
Reference in a new issue