From 008334e7a96cb743f9672cb8925ecd8417539fc4 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 20 Aug 2013 21:49:59 +0000 Subject: [PATCH] Slightly tweak r_usetileshades 1 visibility weighting. It's still not right (and it's impossible to ever truly be right) but at least things aren't pitch black now. I considered changing r_usetileshades to default to 2, but there are some areas where mode 2 is also noticeably darker than it should be... the exit area of E1L1 is a prime example. git-svn-id: https://svn.eduke32.com/eduke32@4028 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index 9ee795132..337911d5c 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -1297,7 +1297,7 @@ static float alpha = 0.f; static pthtyp *our_texcache_fetch(int32_t dameth) { // r_usetileshades 1 is TX's method. - int32_t vis = (r_usetileshades == 1) ? globvis>>2 : 0; + int32_t vis = (r_usetileshades == 1) ? globvis>>3 : 0; return texcache_fetch(globalpicnum, globalpal, getpalookup(vis,globalshade), dameth); }