star-gs

Literate program for a geometric sensitivity calculation
git clone git://git.meso-star.fr/star-gs.git
Log | Files | Refs | README | LICENSE

commit 54bd35dd606cde6b2e44866c75b5fe4a66d864bc
parent 33d18c09fa2c38a5f8a5c3f1279a93ab801902f0
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 12 Apr 2023 16:14:58 +0200

Renomme la fonction sgs_geometry_sample

Le texte utilisait déjà une fonction renommée. Cette validation rend
compte de ce changement de nom dans le code C afin de les mettre en
cohérence.

Diffstat:
Msrc/sgs_compute_sensitivity_translation.nw | 2+-
Msrc/sgs_geometry.c | 2+-
Msrc/sgs_geometry.h | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/sgs_compute_sensitivity_translation.nw b/src/sgs_compute_sensitivity_translation.nw @@ -453,7 +453,7 @@ figure~\ref{fig:configuration}). <<échantillonner une position sur la source de sensibilité>>= /* Sample the sensitivity emissive surface */ -sgs_geometry_sample(scene->geom, rng, &frag); +sgs_geometry_sample_sensitivity_source(scene->geom, rng, &frag); d3_set(pos_h, frag.position); d3_set(normal_h, frag.normal); surf_A_h = frag.surface; /* must be SGS_SURFACE_Z_MAX */ diff --git a/src/sgs_geometry.c b/src/sgs_geometry.c @@ -256,7 +256,7 @@ sgs_geometry_trace_ray } extern LOCAL_SYM void -sgs_geometry_sample +sgs_geometry_sample_sensitivity_source (const struct sgs_geometry* geom, struct ssp_rng* rng, struct sgs_fragment* frag) diff --git a/src/sgs_geometry.h b/src/sgs_geometry.h @@ -129,7 +129,7 @@ sgs_geometry_trace_ray /* Uniformly sample a point onto the faces of the geometry defined in the * sampling_mask on geometry creation */ extern LOCAL_SYM void -sgs_geometry_sample +sgs_geometry_sample_sensitivity_source (const struct sgs_geometry* geom, struct ssp_rng* rng, struct sgs_fragment* frag);