deluxe: always use a MINIMUM light contribution from ambient
git-svn-id: svn://svn.icculus.org/netradiant/trunk@117 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
parent
1f5a43f75d
commit
f6b04e0860
|
|
@ -2010,6 +2010,9 @@ void IlluminateRawLightmap( int rawLightmapNum )
|
||||||
{
|
{
|
||||||
brightness = ambientColor[ 0 ] * 0.3f + ambientColor[ 1 ] * 0.59f + ambientColor[ 2 ] * 0.11f;
|
brightness = ambientColor[ 0 ] * 0.3f + ambientColor[ 1 ] * 0.59f + ambientColor[ 2 ] * 0.11f;
|
||||||
brightness *= (1.0 / 255.0);
|
brightness *= (1.0 / 255.0);
|
||||||
|
// use AT LEAST this amount of contribution from ambient for the deluxemap, fixes points that receive ZERO light
|
||||||
|
if(brightness < 0.00390625f)
|
||||||
|
brightness = 0.00390625f;
|
||||||
VectorScale( normal, brightness, deluxel );
|
VectorScale( normal, brightness, deluxel );
|
||||||
}
|
}
|
||||||
luxel[ 3 ] = 1.0f;
|
luxel[ 3 ] = 1.0f;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user