commit 160da885ccea0b5c6939e629ae0598ff725f6f02
parent 2e068b1551bd01ce3e35f19aeaa76d0f1d5fb6f6
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 22 Apr 2021 16:24:45 +0200
Still fix the move_to_scattering_position function
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/combustion/htrdr_combustion_compute_radiance_sw.c b/src/combustion/htrdr_combustion_compute_radiance_sw.c
@@ -811,7 +811,7 @@ move_to_scattering_position
/* Move to the scattering position */
pos_to_challenge[0] = pos[0] + dir[0] * dst;
pos_to_challenge[1] = pos[1] + dir[1] * dst;
- pos_to_challenge[2] = pos[2] + dir[1] * dst;
+ pos_to_challenge[2] = pos[2] + dir[2] * dst;
/* Find the geometry near the scattering position */
HTRDR(geometry_find_closest_point