commit 9eb6f438fd8e3d1fd9dd7a3eeba63c7824580297
parent ab23353579688e18984b54db460a1646d2763d02
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 10 Jan 2024 17:53:11 +0100
Correct the direct contribution of an external source
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sdis_heat_path_boundary_Xd_handle_external_net_flux.h b/src/sdis_heat_path_boundary_Xd_handle_external_net_flux.h
@@ -183,7 +183,7 @@ XD(direct_contribution)
/* Is the source hidden */
XD(trace_ray)(scn, pos, sample->dir, sample->dst, hit_from, &hit);
- if(SXD_HIT_NONE(&hit)) return 0; /* [W/m^2/sr] */
+ if(!SXD_HIT_NONE(&hit)) return 0; /* [W/m^2/sr] */
return sample->radiance; /* [W/m^2/sr] */
}