Permalink
Browse files

Adjust dlight intensity for old and tiled renderer.

  • Loading branch information...
1 parent e57e853 commit 736aa14c814348184358a584964701c8b8eb3f37 @gimhael gimhael committed Mar 13, 2016
Showing with 2 additions and 2 deletions.
  1. +1 −1 daemon/src/engine/renderer/tr_backend.cpp
  2. +1 −1 daemon/src/engine/renderer/tr_image.cpp
@@ -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:
@@ -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 )
{

0 comments on commit 736aa14

Please sign in to comment.