Skip to content

Commit 183d0ce

Browse files
committed
fixup: cancel overBright on dynamic lights
1 parent d116d3d commit 183d0ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/engine/renderer/tr_scene.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,9 @@ void RE_AddDynamicLightToSceneET( const vec3_t org, float radius, float intensit
429429
light->l.color[ 1 ] = g;
430430
light->l.color[ 2 ] = b;
431431

432+
// Cancel overBright on dynamic lights.
433+
VectorScale( light->l.color, 1.0f / tr.mapLightFactor, light->l.color );
434+
432435
light->l.inverseShadows = (flags & REF_INVERSE_DLIGHT) != 0;
433436
light->l.noShadows = !r_dynamicLightCastShadows->integer && !light->l.inverseShadows;
434437

0 commit comments

Comments
 (0)