star-mc

Parallel estimation of Monte Carlo integrators
git clone git://git.meso-star.fr/star-mc.git
Log | Files | Refs | README | LICENSE

commit 5cda3b5c9b329797e209d9553924973997b971de
parent e5e7d7e0a5bf7c66750e359ed7d1074c5587c74b
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 18 May 2016 11:01:13 +0200

Take into account the s3d_scene_trace_ray API update

Diffstat:
Msrc/test_smc_light_path.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test_smc_light_path.c b/src/test_smc_light_path.c @@ -221,7 +221,7 @@ direct_lighting(struct s3d_scene* scn, const float pos[3], const float N[3]) /* Trace shadow ray */ range[0] = EPSILON; range[1] = len; - CHECK(s3d_scene_trace_ray(scn, pos, wi, range, &hit), RES_OK); + CHECK(s3d_scene_trace_ray(scn, pos, wi, range, NULL, &hit), RES_OK); if(!S3D_HIT_NONE(&hit)) return 0.f; /* Light is occluded */ len *= 0.01f; /* Transform len from centimer to meter */ @@ -281,7 +281,7 @@ light_path_integrator(void* value, struct ssp_rng* rng, void* data) float N[3]; CHECK(s3d_scene_trace_ray - (ctx->scn, ray_org, ray_dir, ray_range, &hit), RES_OK); + (ctx->scn, ray_org, ray_dir, ray_range, NULL, &hit), RES_OK); if(S3D_HIT_NONE(&hit)) { /* Skydome lighting */ L += throughput * skydome_lighting(ray_dir);