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:
Diffstat (limited to 'source/blender/nodes/texture/node_texture_util.c')
-rw-r--r--source/blender/nodes/texture/node_texture_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/nodes/texture/node_texture_util.c b/source/blender/nodes/texture/node_texture_util.c
index 255ed9e51fc..28d03db1687 100644
--- a/source/blender/nodes/texture/node_texture_util.c
+++ b/source/blender/nodes/texture/node_texture_util.c
@@ -88,9 +88,9 @@ void tex_input_rgba(float *out, bNodeStack *in, TexParams *params, short thread)
}
if (in->hasoutput && in->sockettype == SOCK_VECTOR) {
- out[0] = out[0] * .5f + .5f;
- out[1] = out[1] * .5f + .5f;
- out[2] = out[2] * .5f + .5f;
+ out[0] = out[0] * 0.5f + 0.5f;
+ out[1] = out[1] * 0.5f + 0.5f;
+ out[2] = out[2] * 0.5f + 0.5f;
out[3] = 1;
}
}