From 483b99763a35bcc26da6d0764cf8ab27b9c7b96c Mon Sep 17 00:00:00 2001 From: SNMetamorph Date: Sun, 26 Jan 2025 17:03:39 +0400 Subject: [PATCH] utils: pxrad: fixed missing color bleeding It was originally missing in p2rad too. At same time, VHLT does similar step, except slightly differences. --- utils/pxrad/qrad.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/pxrad/qrad.cpp b/utils/pxrad/qrad.cpp index 05c2a506f..4408fbca0 100644 --- a/utils/pxrad/qrad.cpp +++ b/utils/pxrad/qrad.cpp @@ -2205,6 +2205,8 @@ void BounceLight( int threadnum ) if( m < MAXLIGHTMAPS ) { VectorScale( emitlight[patchnum][emitstyle], (float)(*tData), v ); + VectorMultiply( v, emitpatch->reflectivity, v ); + if( !VectorIsFinite( v )) continue; if( VectorMaximum( v ) < EQUAL_EPSILON )