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:
authorTon Roosendaal <ton@blender.org>2005-02-25 15:19:42 +0300
committerTon Roosendaal <ton@blender.org>2005-02-25 15:19:42 +0300
commitda00e25dff582f04b8626c958d218811b43723b0 (patch)
tree7655d5239d52014929f72949d9c33496895ae532
parent4ee71094fa216aab3f4b48e20211fb78d3369454 (diff)
Preview render of stucci was wrong. Fix found+provided by Chris Burt. thnx!
-rw-r--r--source/blender/render/intern/source/texture.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/texture.c b/source/blender/render/intern/source/texture.c
index b4be9baaf82..97b64d0141a 100644
--- a/source/blender/render/intern/source/texture.c
+++ b/source/blender/render/intern/source/texture.c
@@ -1190,7 +1190,10 @@ int multitex_ext(Tex *tex, float *texvec, float *tin, float *tr, float *tg, floa
else texr.nor= NULL;
retval= multitex(tex, texvec, NULL, NULL, 0, &texr);
- if(tex->type==TEX_STUCCI) *tin= texr.nor[0];
+ if(tex->type==TEX_STUCCI) {
+ *tin= 0.5 + 0.7*texr.nor[0];
+ CLAMP(*tin, 0.0, 1.0);
+ }
else *tin= texr.tin;
*tr= texr.tr;
*tg= texr.tg;