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-06-26 14:35:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-26 14:50:48 +0300
commitf1e49038543cf75766f4a220f62cdc6cdbc0e27d (patch)
tree0cec2c64739a6a4ca246fe26bed6fe629ea315cb /source/blender/compositor/operations/COM_DistanceRGBMatteOperation.cc
parentfae5a907d4d1380f087f1226ebbd65d9d0718cc6 (diff)
Cleanup: full sentences in comments, improve comment formatting
Diffstat (limited to 'source/blender/compositor/operations/COM_DistanceRGBMatteOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_DistanceRGBMatteOperation.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_DistanceRGBMatteOperation.cc b/source/blender/compositor/operations/COM_DistanceRGBMatteOperation.cc
index 12cb7e7d075..1b3403cbb29 100644
--- a/source/blender/compositor/operations/COM_DistanceRGBMatteOperation.cc
+++ b/source/blender/compositor/operations/COM_DistanceRGBMatteOperation.cc
@@ -71,15 +71,15 @@ void DistanceRGBMatteOperation::executePixelSampled(float output[4],
* COM_SetAlphaMultiplyOperation and the Value output.
*/
- /*make 100% transparent */
+ /* Make 100% transparent. */
if (distance < tolerance) {
output[0] = 0.0f;
}
- /*in the falloff region, make partially transparent */
+ /* In the falloff region, make partially transparent. */
else if (distance < falloff + tolerance) {
distance = distance - tolerance;
alpha = distance / falloff;
- /*only change if more transparent than before */
+ /* Only change if more transparent than before. */
if (alpha < inImage[3]) {
output[0] = alpha;
}