We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddb05be commit ced7066Copy full SHA for ced7066
1 file changed
src/engine/renderer/tr_bsp.cpp
@@ -3443,9 +3443,9 @@ static void R_SetConstantColorLightGrid( const byte color[3] )
3443
gridPoint1->color[ 1 ] = color[1];
3444
gridPoint1->color[ 2 ] = color[2];
3445
gridPoint1->ambientPart = 128;
3446
- gridPoint2->direction[ 0 ] = floatToSnorm8(0.0f);
3447
- gridPoint2->direction[ 1 ] = floatToSnorm8(0.0f);
3448
- gridPoint2->direction[ 2 ] = floatToSnorm8(1.0f);
+ gridPoint2->direction[ 0 ] = 128 + floatToSnorm8( 0.0f );
+ gridPoint2->direction[ 1 ] = 128 + floatToSnorm8( 0.0f );
+ gridPoint2->direction[ 2 ] = 128 + floatToSnorm8( 1.0f );
3449
gridPoint2->isSet = 255;
3450
3451
w->lightGridData1 = gridPoint1;
0 commit comments