commit 62850e82cb9b04e19bc240f3663e581b405a37c7
parent 5e0bb9b16e0f6a7e171691578234083cdc80fb89
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 28 Oct 2022 16:57:42 +0200
htrdr-planeto: fix a warning
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/planeto/htrdr_planeto_draw_map.c b/src/planeto/htrdr_planeto_draw_map.c
@@ -123,8 +123,12 @@ draw_pixel_image
ASSERT(iband[0] == iband[1]);
/* TODO Compute the radiance in W/m²/sr/m */
- /*weight = planeto_compute_radiance(cmd, args->ithread, args->rng,
- ray.org, ray.dir, wlen, iband, iquad); */
+#if 0
+ weight = planeto_compute_radiance(cmd, args->ithread, args->rng,
+ ray.org, ray.dir, wlen, iband, iquad);
+#else
+ weight = 0;
+#endif
ASSERT(weight >= 0);
weight /= pdf; /* In W/m²/sr */