diff options
author | Ton Roosendaal <ton@blender.org> | 2006-10-14 19:26:15 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-10-14 19:26:15 +0400 |
commit | bc10cf38b9c46855f15863f35c60c2c8714e5187 (patch) | |
tree | 6164b8a6c757dda2075cd54880443063c3e068cd | |
parent | 11b4d14ab6651b14bbbf41981734689b1ddea195 (diff) |
Irregular shadow bug: mixing up zmin and zmax in optimize caused larger
faces to miss casting shadow.
-rw-r--r-- | source/blender/render/intern/source/shadbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/shadbuf.c b/source/blender/render/intern/source/shadbuf.c index fc6e34d0cbb..2194d202351 100644 --- a/source/blender/render/intern/source/shadbuf.c +++ b/source/blender/render/intern/source/shadbuf.c @@ -1256,7 +1256,7 @@ static void isb_bsp_face_inside(ISBBranch *bspn, BSPFace *face) ISBSample *samp= bspn->samples[a]; if(samp->facenr!=face->facenr && samp->shadfac) { - if(face->box.zmax < samp->zco[2]) { + if(face->box.zmin < samp->zco[2]) { if(BLI_in_rctf((rctf *)&face->box, samp->zco[0], samp->zco[1])) { int inshadow= 0; |