mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-14 13:10:09 +01:00
ref_soft: Re-enable lightvec calculation
This commit is contained in:
parent
529bb53d52
commit
44a8ede94d
10
r_light.c
10
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 ) &&
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user