From c03650073e60194500e13dc996168c4930970f5b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 16 Feb 2021 21:15:45 +1100 Subject: Cleanup: spelling --- intern/cycles/kernel/closure/bsdf_microfacet.h | 4 ++-- intern/cycles/kernel/kernel_subsurface.h | 6 +++--- intern/cycles/util/util_string.h | 2 +- intern/ghost/intern/GHOST_SystemCocoa.mm | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'intern') diff --git a/intern/cycles/kernel/closure/bsdf_microfacet.h b/intern/cycles/kernel/closure/bsdf_microfacet.h index 32639ba24ec..aed4b849aca 100644 --- a/intern/cycles/kernel/closure/bsdf_microfacet.h +++ b/intern/cycles/kernel/closure/bsdf_microfacet.h @@ -487,11 +487,11 @@ ccl_device float3 bsdf_microfacet_ggx_eval_reflect(const ShaderClosure *sc, float3 out = F * G * common; /* eq. 2 in distribution of visible normals sampling - * pm = Dw = G1o * dot(m, I) * D / dot(N, I); */ + * `pm = Dw = G1o * dot(m, I) * D / dot(N, I);` */ /* eq. 38 - but see also: * eq. 17 in http://www.graphics.cornell.edu/~bjw/wardnotes.pdf - * pdf = pm * 0.25 / dot(m, I); */ + * `pdf = pm * 0.25 / dot(m, I);` */ *pdf = G1o * common; return out; 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). * diff --git a/intern/cycles/util/util_string.h b/intern/cycles/util/util_string.h index 6b6f493bd94..f2272819b2f 100644 --- a/intern/cycles/util/util_string.h +++ b/intern/cycles/util/util_string.h @@ -52,7 +52,7 @@ string string_remove_trademark(const string &s); string string_from_bool(const bool var); string to_string(const char *str); -/* Wide char strings are only used on Windows to deal with non-ascii +/* Wide char strings are only used on Windows to deal with non-ASCII * characters in file names and such. No reason to use such strings * for something else at this moment. * diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm index d7dbfbe8813..f42d4af109a 100644 --- a/intern/ghost/intern/GHOST_SystemCocoa.mm +++ b/intern/ghost/intern/GHOST_SystemCocoa.mm @@ -1286,7 +1286,7 @@ GHOST_TSuccess GHOST_SystemCocoa::handleDraggingEvent(GHOST_TEventType eventType return GHOST_kFailure; } - /* Then get Alpha values by getting the RGBA image (that is premultiplied btw) */ + /* Then get Alpha values by getting the RGBA image (that is pre-multiplied BTW) */ blBitmapFormatImageRGBA = [[NSBitmapImageRep alloc] initWithBitmapDataPlanes:NULL pixelsWide:imgSize.width -- cgit v1.2.3