}
else
VectorCopy( luxel, color );
-
+
/* styles are not affected by minlight */
if( lightmapNum == 0 )
{
/* store color */
pixel = olm->bspLightBytes + (((oy * olm->customWidth) + ox) * 3);
+
if(deluxemap)
ColorToBytesDeluxe( color, pixel, lm->brightness, deluxel, olm->bspDirBytes + (((oy * olm->customWidth) + ox) * 3));
else
int i, j, k, x, y, lx, ly, sx, sy, *cluster, mappedSamples;
int style, size, lightmapNum, lightmapNum2;
float *normal, *luxel, *bspLuxel, *bspLuxel2, *radLuxel, samples, occludedSamples;
- vec3_t sample, occludedSample, dirSample, colorMins, colorMaxs;
+ vec3_t sample, occludedSample, colorMins, colorMaxs;
+ vec_t dirSample[4];
float *deluxel, *bspDeluxel, *bspDeluxel2;
byte *lb;
int numUsed, numTwins, numTwinLuxels, numStored;
/* get luxels */
luxel = SUPER_LUXEL( lightmapNum, x, y );
deluxel = SUPER_DELUXEL( x, y );
-
+
/* copy light direction */
if( deluxemap && lightmapNum == 0 )
{
}
}
}
-
+
/* scale the sample */
VectorScale( sample, (1.0f / samples), sample );