diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-10-12 09:52:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-10-12 09:55:02 +0300 |
commit | c1c6c11ca6c5f4cd775b787910fe69119b054af2 (patch) | |
tree | e41bb7057e27810c18ca6cc23e40ee48c3e814b4 /intern/cycles/kernel/closure/bssrdf.h | |
parent | a91c6f1804e9ce07e9f751bc1c3c05751da7607a (diff) |
Cleanup: spelling in comments
Diffstat (limited to 'intern/cycles/kernel/closure/bssrdf.h')
-rw-r--r-- | intern/cycles/kernel/closure/bssrdf.h | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |