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-09-29 00:29:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-09-29 00:29:15 +0300
commit79290f51605e31cff09e4984d4f493d05bfe17e2 (patch)
tree77a9513a2c85012ac805f38c1083c423c36c72f1 /source/blender/render
parentefe3a13b55c0295b68697c19e4379b5bbe8684ca (diff)
Cleanup: spelling in comments
Diffstat (limited to 'source/blender/render')
-rw-r--r--source/blender/render/intern/texture_image.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/source/blender/render/intern/texture_image.c b/source/blender/render/intern/texture_image.c
index 62aee564626..edfa284242c 100644
--- a/source/blender/render/intern/texture_image.c
+++ b/source/blender/render/intern/texture_image.c
@@ -1958,13 +1958,11 @@ int imagewraposa(Tex *tex,
}
if (texres->nor && (tex->imaflag & TEX_NORMALMAP)) {
- /* qdn: normal from color
- * The invert of the red channel is to make
- * the normal map compliant with the outside world.
- * It needs to be done because in Blender
- * the normal used in the renderer points inward. It is generated
- * this way in calc_vertexnormals(). Should this ever change
- * this negate must be removed. */
+ /* Normal from color:
+ * The invert of the red channel is to make the normal map compliant with the outside world.
+ * It needs to be done because in Blender the normal used in the renderer points inward.
+ * It is generated this way in #calc_vertexnormals().
+ * Should this ever change this negate must be removed. */
texres->nor[0] = -2.0f * (texres->tr - 0.5f);
texres->nor[1] = 2.0f * (texres->tg - 0.5f);
texres->nor[2] = 2.0f * (texres->tb - 0.5f);