diff options
author | Ton Roosendaal <ton@blender.org> | 2005-02-25 15:19:42 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-02-25 15:19:42 +0300 |
commit | da00e25dff582f04b8626c958d218811b43723b0 (patch) | |
tree | 7655d5239d52014929f72949d9c33496895ae532 | |
parent | 4ee71094fa216aab3f4b48e20211fb78d3369454 (diff) |
Preview render of stucci was wrong. Fix found+provided by Chris Burt. thnx!
-rw-r--r-- | source/blender/render/intern/source/texture.c | 5 |
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; |