Skip to content

Commit

Permalink
utils: pxrad: fixed missing color bleeding
Browse files Browse the repository at this point in the history
It was originally missing in p2rad too. At same time, VHLT does similar step, except slightly differences.
  • Loading branch information
SNMetamorph committed Jan 26, 2025
1 parent e9b04b1 commit 483b997
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/pxrad/qrad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 483b997

Please sign in to comment.