*/
#define LIGHTMAP_RESERVE_COUNT 1
-static void FindOutLightmaps( rawLightmap_t *lm, qboolean fastAllocate ){
+static void FindOutLightmaps( rawLightmap_t *lm, qboolean fastLightmapSearch ){
int i, j, k, lightmapNum, xMax, yMax, x = -1, y = -1, sx, sy, ox, oy, offset;
outLightmap_t *olm;
surfaceInfo_t *info;
}
/* if fast allocation, skip lightmap files that are more than 90% complete */
- if ( fastAllocate == qtrue ) {
+ if ( fastLightmapSearch == qtrue ) {
if (olm->freeLuxels < (olm->customWidth * olm->customHeight) / 10) {
continue;
}
}
/* if fast allocation, do not test allocation on every pixels, especially for large lightmaps */
- if ( fastAllocate == qtrue ) {
+ if ( fastLightmapSearch == qtrue ) {
xIncrement = MAX(1, lm->w / 15);
yIncrement = MAX(1, lm->h / 15);
}
stores the surface lightmaps into the bsp as byte rgb triplets
*/
-void StoreSurfaceLightmaps( qboolean fastAllocate ){
+void StoreSurfaceLightmaps( qboolean fastLightmapSearch ){
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;
for ( i = 0; i < numRawLightmaps; i++ )
{
lm = &rawLightmaps[ sortLightmaps[ i ] ];
- FindOutLightmaps( lm, fastAllocate );
+ FindOutLightmaps( lm, fastLightmapSearch );
}
/* set output numbers in twinned lightmaps */