diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-02-16 13:15:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-02-16 13:15:45 +0300 |
commit | c03650073e60194500e13dc996168c4930970f5b (patch) | |
tree | c9cbaa7533bf1e7712aaa12594be030a23295477 /intern/cycles/kernel/kernel_subsurface.h | |
parent | a059f072741d671ad882c44e93f6f62bb38f27d8 (diff) |
Cleanup: spelling
Diffstat (limited to 'intern/cycles/kernel/kernel_subsurface.h')
-rw-r--r-- | intern/cycles/kernel/kernel_subsurface.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/kernel/kernel_subsurface.h b/intern/cycles/kernel/kernel_subsurface.h index 50a232dd82e..d8258a8336c 100644 --- a/intern/cycles/kernel/kernel_subsurface.h +++ b/intern/cycles/kernel/kernel_subsurface.h @@ -390,8 +390,8 @@ ccl_device_forceinline float eval_phase_dwivedi(float v, float phase_log, float ccl_device_forceinline float sample_phase_dwivedi(float v, float phase_log, float rand) { - /* Based on Eq. 10 from [2]: v - (v + 1) * pow((v - 1) / (v + 1), rand) - * Since we're already precomputing phase_log = log((v + 1) / (v - 1)) for the evaluation, + /* Based on Eq. 10 from [2]: `v - (v + 1) * pow((v - 1) / (v + 1), rand)` + * Since we're already pre-computing `phase_log = log((v + 1) / (v - 1))` for the evaluation, * we can implement the power function like this. */ return v - (v + 1) * expf(-rand * phase_log); } @@ -455,7 +455,7 @@ ccl_device_noinline float3 sigma_s = sigma_t * alpha; /* Theoretically it should be better to use the exact alpha for the channel we're sampling at - * each bounce, but in practise there doesn't seem to be a noticeable difference in exchange + * each bounce, but in practice there doesn't seem to be a noticeable difference in exchange * for making the code significantly more complex and slower (if direction sampling depends on * the sampled channel, we need to compute its PDF per-channel and consider it for MIS later on). * |