commit 1910bf93ec91c1d499003e3dfb4eccc928fd9602
parent d4a3f56d761728aa176fc1661b36bc0bbdb91264
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 3 Oct 2016 21:18:19 +0200
Fix typos in comments
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/ssf.h b/src/ssf.h
@@ -155,7 +155,7 @@ SSF_API const struct ssf_bxdf_type ssf_microfacet_reflection;
/* Glossy reflections with respect to a microfacet distribution. In contrast to
* the common microfacet reflection, this BRDF ensures, by design, the energy
* conservation property without requiring the normalization of the BRDF. As a
- * conterpart, it only provides the sample function. The others functions
+ * counterpart, it only provides the sample function. The others functions
* return invalid value. */
SSF_API const struct ssf_bxdf_type ssf_microfacet2_reflection;
@@ -202,7 +202,7 @@ ssf_bsdf_clear
/* Return the directional reflectance, i.e. the ratio between the reflected
* and the incoming radiance (Li/Lo). Note that this is different to the
- * BxDF value that is the ratio between the reflected radiance and the incoming
+ * BSDF value that is the ratio between the reflected radiance and the incoming
* irradiance, i.e. Li/Eo */
SSF_API double
ssf_bsdf_sample
@@ -210,7 +210,7 @@ ssf_bsdf_sample
struct ssp_rng* rng, /* Random number generator */
const double wo[3], /* Normalized outgoing direction */
const double N[3], /* Normalized surface normal */
- double wi[3], /* Sampeled normalized incoming direction */
+ double wi[3], /* Sampled normalized incoming direction */
double* pdf); /* PDF to sample wi wrt wo */
SSF_API double
@@ -260,7 +260,7 @@ ssf_bxdf_sample
double wi[3], /* Sampled normalized incoming direction. */
double* pdf); /* PDF of the sampled direction */
-SSF_API double /* Reflectivity */
+SSF_API double
ssf_bxdf_eval
(struct ssf_bxdf* bxdf,
const double wo[3], /* Normalized outgoing direction */