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>2007-02-14 17:36:39 +0300
committerTon Roosendaal <ton@blender.org>2007-02-14 17:36:39 +0300
commita7066480da9e4b8ecd28f3d8fca5866ee306b6e2 (patch)
treed6e00bf9f988cf7ee8faa73bb8278509a5d6921d
parent58d6e51cb5ab1fd54c3bdda6e5fe071bbc356fc6 (diff)
Bugfix #6044
OnlyShadow material: was giving shadow on backfacing faces... should not. Do note that on boundary cases ("terminator") this isn't well defined. This feature was meant for simple flat shadow planes, comprende?! :)
-rw-r--r--source/blender/render/intern/source/shadeoutput.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/render/intern/source/shadeoutput.c b/source/blender/render/intern/source/shadeoutput.c
index 46109deda64..992e2619ccd 100644
--- a/source/blender/render/intern/source/shadeoutput.c
+++ b/source/blender/render/intern/source/shadeoutput.c
@@ -1376,9 +1376,11 @@ static void shade_lamp_loop_only_shadow(ShadeInput *shi, ShadeResult *shr)
continue;
}
inpr= INPR(shi->vn, lv);
- if(inpr <= 0.0f)
+ if(inpr <= 0.0f) {
+ ir+= 1.0f;
+ accum+= 1.0f;
continue;
-
+ }
lamp_get_shadow(lar, shi, inpr, shadfac, shi->depth);
ir+= 1.0f;