solstice-solver

Solver library of the solstice app
git clone git://git.meso-star.com/solstice-solver.git
Log | Files | Refs | README | LICENSE

commit c84c9f966202e57c841f17be58841474f1a7e127
parent 6a5c7fd4b5014a0d1f25df72f557b1477b8fff71
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 18 Jul 2016 12:54:47 +0200

Add the ssol_solve function profile

Diffstat:
Msrc/ssol.h | 10++++++++++
Msrc/ssol_material.c | 3+--
2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/ssol.h b/src/ssol.h @@ -511,6 +511,16 @@ ssol_sun_set_buie_param (struct ssol_sun* sun, const double param); /* In ]0, 1[ */ +/******************************************************************************* + * Miscellaneous functions + ******************************************************************************/ +SSOL_API res_T +ssol_solve + (const struct ssol_scene* scn, + struct ssp_rng* rng, + const size_t realisations_count, + FILE* output); + END_DECLS #endif /* SSOL_H */ diff --git a/src/ssol_material.c b/src/ssol_material.c @@ -53,7 +53,7 @@ mirror_shade shader = &mtl->data.mirror; /* FIXME currently the mirror material is a purely reflective BRDF. Discard - * the diffuse_specular_ration & the rougness parameters */ + * the diffuse_specular_ratio & the rougness parameters */ shader->normal(mtl->dev, wavelength, P, Ng, Ns, uv, w, normal); shader->reflectivity(mtl->dev, wavelength, P, Ng, Ns, uv, w, &R); @@ -276,7 +276,6 @@ material_shade break; default: FATAL("Unreachable code\n"); break; } - return res; }