light: remove transparent lightmaps spam

This commit is contained in:
Eric Wasylishen 2017-12-28 12:50:32 -07:00
parent 5e472bf817
commit ebb508c7db
3 changed files with 5 additions and 2 deletions

View File

@ -42,6 +42,7 @@
extern std::atomic<uint32_t> total_light_rays, total_light_ray_hits, total_samplepoints;
extern std::atomic<uint32_t> total_bounce_rays, total_bounce_ray_hits;
extern std::atomic<uint32_t> fully_transparent_lightmaps;
class faceextents_t {
private:

View File

@ -1208,7 +1208,7 @@ light_main(int argc, const char **argv)
logprint("%f bounce lights tested, %f hits per sample point\n",
static_cast<double>(total_bounce_rays) / static_cast<double>(total_samplepoints),
static_cast<double>(total_bounce_ray_hits) / static_cast<double>(total_samplepoints));
logprint("%d empty lightmaps\n", static_cast<int>(fully_transparent_lightmaps));
close_log();
return 0;

View File

@ -35,6 +35,7 @@ using namespace std;
std::atomic<uint32_t> total_light_rays, total_light_ray_hits, total_samplepoints;
std::atomic<uint32_t> total_bounce_rays, total_bounce_ray_hits;
std::atomic<uint32_t> fully_transparent_lightmaps;
/* ======================================================================== */
@ -2688,7 +2689,8 @@ FloodFillTransparent(const std::vector<qvec4f> &input, int w, int h)
}
if (unhandled_pixels == input.size()) {
logprint("FloodFillTransparent: warning, fully transparent lightmap\n");
//logprint("FloodFillTransparent: warning, fully transparent lightmap\n");
fully_transparent_lightmaps++;
break;
}