diff --git a/include/light/ltface.hh b/include/light/ltface.hh index 2fa8c49c..95a65ff6 100644 --- a/include/light/ltface.hh +++ b/include/light/ltface.hh @@ -42,6 +42,7 @@ extern std::atomic total_light_rays, total_light_ray_hits, total_samplepoints; extern std::atomic total_bounce_rays, total_bounce_ray_hits; +extern std::atomic fully_transparent_lightmaps; class faceextents_t { private: diff --git a/light/light.cc b/light/light.cc index fd43a195..8579b131 100644 --- a/light/light.cc +++ b/light/light.cc @@ -1208,7 +1208,7 @@ light_main(int argc, const char **argv) logprint("%f bounce lights tested, %f hits per sample point\n", static_cast(total_bounce_rays) / static_cast(total_samplepoints), static_cast(total_bounce_ray_hits) / static_cast(total_samplepoints)); - + logprint("%d empty lightmaps\n", static_cast(fully_transparent_lightmaps)); close_log(); return 0; diff --git a/light/ltface.cc b/light/ltface.cc index dadfac56..047d276c 100644 --- a/light/ltface.cc +++ b/light/ltface.cc @@ -35,6 +35,7 @@ using namespace std; std::atomic total_light_rays, total_light_ray_hits, total_samplepoints; std::atomic total_bounce_rays, total_bounce_ray_hits; +std::atomic fully_transparent_lightmaps; /* ======================================================================== */ @@ -2688,7 +2689,8 @@ FloodFillTransparent(const std::vector &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; }