Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-10-12 09:52:35 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-10-12 09:55:02 +0300
commitc1c6c11ca6c5f4cd775b787910fe69119b054af2 (patch)
treee41bb7057e27810c18ca6cc23e40ee48c3e814b4 /intern/cycles/kernel/closure
parenta91c6f1804e9ce07e9f751bc1c3c05751da7607a (diff)
Cleanup: spelling in comments
Diffstat (limited to 'intern/cycles/kernel/closure')
-rw-r--r--intern/cycles/kernel/closure/bsdf.h2
-rw-r--r--intern/cycles/kernel/closure/bsdf_principled_diffuse.h4
-rw-r--r--intern/cycles/kernel/closure/bssrdf.h6
3 files changed, 6 insertions, 6 deletions
diff --git a/intern/cycles/kernel/closure/bsdf.h b/intern/cycles/kernel/closure/bsdf.h
index 87aa6339f80..bb80b9636bb 100644
--- a/intern/cycles/kernel/closure/bsdf.h
+++ b/intern/cycles/kernel/closure/bsdf.h
@@ -654,7 +654,7 @@ ccl_device_inline
ccl_device void bsdf_blur(const KernelGlobals *kg, ShaderClosure *sc, float roughness)
{
- /* ToDo: do we want to blur volume closures? */
+ /* TODO: do we want to blur volume closures? */
#ifdef __SVM__
switch (sc->type) {
case CLOSURE_BSDF_MICROFACET_MULTI_GGX_ID:
diff --git a/intern/cycles/kernel/closure/bsdf_principled_diffuse.h b/intern/cycles/kernel/closure/bsdf_principled_diffuse.h
index 04963ca1dc5..52a37eafd9f 100644
--- a/intern/cycles/kernel/closure/bsdf_principled_diffuse.h
+++ b/intern/cycles/kernel/closure/bsdf_principled_diffuse.h
@@ -91,7 +91,7 @@ ccl_device float3 bsdf_principled_diffuse_compute_brdf(
return make_float3(value, value, value);
}
-/* Compute Fresnel at entry point, to be compbined with PRINCIPLED_DIFFUSE_LAMBERT_EXIT
+/* Compute Fresnel at entry point, to be combined with #PRINCIPLED_DIFFUSE_LAMBERT_EXIT
* at the exit point to get the complete BSDF. */
ccl_device_inline float bsdf_principled_diffuse_compute_entry_fresnel(const float NdotV)
{
@@ -99,7 +99,7 @@ ccl_device_inline float bsdf_principled_diffuse_compute_entry_fresnel(const floa
return (1.0f - 0.5f * FV);
}
-/* Ad-hoc weight adjusment to avoid retro-reflection taking away half the
+/* Ad-hoc weight adjustment to avoid retro-reflection taking away half the
* samples from BSSRDF. */
ccl_device_inline float bsdf_principled_diffuse_retro_reflection_sample_weight(
PrincipledDiffuseBsdf *bsdf, const float3 I)
diff --git a/intern/cycles/kernel/closure/bssrdf.h b/intern/cycles/kernel/closure/bssrdf.h
index d2f8af7910c..07415c53ec5 100644
--- a/intern/cycles/kernel/closure/bssrdf.h
+++ b/intern/cycles/kernel/closure/bssrdf.h
@@ -136,10 +136,10 @@ ccl_device float bssrdf_burley_eval(const float d, float r)
/* Burley reflectance profile, equation (3).
*
* NOTES:
- * - Surface albedo is already included into sc->weight, no need to
+ * - Surface albedo is already included into `sc->weight`, no need to
* multiply by this term here.
* - This is normalized diffuse model, so the equation is multiplied
- * by 2*pi, which also matches cdf().
+ * by `2*pi`, which also matches `cdf()`.
*/
float exp_r_3_d = expf(-r / (3.0f * d));
float exp_r_d = exp_r_3_d * exp_r_3_d * exp_r_3_d;
@@ -288,7 +288,7 @@ ccl_device int bssrdf_setup(ShaderData *sd, Bssrdf *bssrdf, ClosureType type, co
bsdf->roughness = bssrdf->roughness;
flag |= bsdf_principled_diffuse_setup(bsdf, PRINCIPLED_DIFFUSE_RETRO_REFLECTION);
- /* Ad-hoc weight adjusment to avoid retro-reflection taking away half the
+ /* Ad-hoc weight adjustment to avoid retro-reflection taking away half the
* samples from BSSRDF. */
bsdf->sample_weight *= bsdf_principled_diffuse_retro_reflection_sample_weight(bsdf, sd->I);
}