contribution_t contributions[ MAX_CONTRIBUTIONS ];
trace_t trace;
contribution_t contributions[ MAX_CONTRIBUTIONS ];
trace_t trace;
/* get grid points */
gp = &rawGridPoints[ num ];
bgp = &bspGridPoints[ num ];
/* get grid points */
gp = &rawGridPoints[ num ];
bgp = &bspGridPoints[ num ];
vec3_t color;
float f;
int b, bt;
vec3_t color;
float f;
int b, bt;
- qboolean minVertex, minGrid;
+ qboolean minVertex, minGrid, ps;
SetupEnvelopes( qtrue, fastgrid );
Sys_Printf( "--- TraceGrid ---\n" );
SetupEnvelopes( qtrue, fastgrid );
Sys_Printf( "--- TraceGrid ---\n" );
+ ps = patchShadows;
+ patchShadows = qfalse; /* patch shadows + lightgrid sampling tends to sample between patch and caulk, so let's turn that off for now FIXME */
RunThreadsOnIndividual( numRawGridPoints, qtrue, TraceGrid );
RunThreadsOnIndividual( numRawGridPoints, qtrue, TraceGrid );
Sys_Printf( "%d x %d x %d = %d grid\n",
gridBounds[ 0 ], gridBounds[ 1 ], gridBounds[ 2 ], numBSPGridPoints );
Sys_Printf( "%d x %d x %d = %d grid\n",
gridBounds[ 0 ], gridBounds[ 1 ], gridBounds[ 2 ], numBSPGridPoints );
gridBoundsCulled = 0;
Sys_Printf( "--- BounceGrid ---\n" );
gridBoundsCulled = 0;
Sys_Printf( "--- BounceGrid ---\n" );
+ ps = patchShadows;
+ patchShadows = qfalse; /* patch shadows + lightgrid sampling tends to sample between patch and caulk, so let's turn that off for now FIXME */
RunThreadsOnIndividual( numRawGridPoints, qtrue, TraceGrid );
RunThreadsOnIndividual( numRawGridPoints, qtrue, TraceGrid );
Sys_FPrintf( SYS_VRB, "%9d grid points envelope culled\n", gridEnvelopeCulled );
Sys_FPrintf( SYS_VRB, "%9d grid points bounds culled\n", gridBoundsCulled );
}
Sys_FPrintf( SYS_VRB, "%9d grid points envelope culled\n", gridEnvelopeCulled );
Sys_FPrintf( SYS_VRB, "%9d grid points bounds culled\n", gridBoundsCulled );
}