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
path: root/intern
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-02-16 13:15:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-02-16 13:15:45 +0300
commitc03650073e60194500e13dc996168c4930970f5b (patch)
treec9cbaa7533bf1e7712aaa12594be030a23295477 /intern
parenta059f072741d671ad882c44e93f6f62bb38f27d8 (diff)
Cleanup: spelling
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/kernel/closure/bsdf_microfacet.h4
-rw-r--r--intern/cycles/kernel/kernel_subsurface.h6
-rw-r--r--intern/cycles/util/util_string.h2
-rw-r--r--intern/ghost/intern/GHOST_SystemCocoa.mm2
4 files changed, 7 insertions, 7 deletions
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