From 44a8ede94d5bceda84e1000bee5e8a043418f109 Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 27 Mar 2019 20:17:58 +0700 Subject: [PATCH] ref_soft: Re-enable lightvec calculation --- r_light.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/r_light.c b/r_light.c index 6d17f51c..d1e22ee3 100644 --- a/r_light.c +++ b/r_light.c @@ -344,11 +344,11 @@ static qboolean R_RecursiveLightPoint( model_t *model, mnode_t *node, float p1f, { uint scale = tr.lightstylevalue[surf->styles[map]]; - if( tr.ignore_lightgamma ) + if( 1 ) //tr.ignore_lightgamma ) { - cv->r += lm->r * scale; - cv->g += lm->g * scale; - cv->b += lm->b * scale; + cv->r += lm->r * 255 * 2.5; // scale; + cv->g += lm->g * 255 * 2.5; // scale; + cv->b += lm->b * 255 * 2.5; // scale; } else { @@ -472,7 +472,7 @@ colorVec R_LightVec( const vec3_t start, const vec3_t end, vec3_t lspot, vec3_t { colorVec light = R_LightVecInternal( start, end, lspot, lvec ); - light.r = light.g = light.b = 255; + //light.r = light.g = light.b = 255; if( lspot != NULL && lvec != NULL ) // CVAR_TO_BOOL( r_lighting_extended ) && {