Skip to content

Commit

Permalink
Adjust dlight intensity for old and tiled renderer.
Browse files Browse the repository at this point in the history
  • Loading branch information
gimhael committed Mar 13, 2016
1 parent e57e853 commit 736aa14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion daemon/src/engine/renderer/tr_backend.cpp
Expand Up @@ -5439,7 +5439,7 @@ static const void *RB_SetupLights( const void *data )

VectorCopy( light->l.origin, buffer[i].center );
buffer[i].radius = light->l.radius;
VectorScale( light->l.color, light->l.scale, buffer[i].color );
VectorScale( light->l.color, 4.0f * light->l.scale, buffer[i].color );
buffer[i].type = Util::ordinal( light->l.rlType );
switch( light->l.rlType ) {
case refLightType_t::RL_PROJ:
Expand Down
2 changes: 1 addition & 1 deletion daemon/src/engine/renderer/tr_image.cpp
Expand Up @@ -2565,7 +2565,7 @@ static void R_CreateAttenuationXYImage()

d = ( ATTENUATION_XY_SIZE / 2 - 0.5f - x ) * ( ATTENUATION_XY_SIZE / 2 - 0.5f - x ) +
( ATTENUATION_XY_SIZE / 2 - 0.5f - y ) * ( ATTENUATION_XY_SIZE / 2 - 0.5f - y );
b = 4000 / d;
b = 1000 / d;

if ( b > 255 )
{
Expand Down

0 comments on commit 736aa14

Please sign in to comment.