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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-04-20 01:58:11 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-04-20 01:58:11 +0400
commitf3c3da530cd1f05ddd4e0170cbe20cc2546e9f89 (patch)
tree2ade46fa5542e45fb245a56fa7ce3d4b57571c8d /source/blender/render
parentbdf5c0689b1617118cd7f327139a928ec04c47bf (diff)
Fix for bug #8963: area light + cubic shading became darker
for values > 1.0, luckily for peach this bug was not present for other light types.
Diffstat (limited to 'source/blender/render')
-rw-r--r--source/blender/render/intern/source/shadeoutput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/shadeoutput.c b/source/blender/render/intern/source/shadeoutput.c
index e1de2710394..629d60bdffc 100644
--- a/source/blender/render/intern/source/shadeoutput.c
+++ b/source/blender/render/intern/source/shadeoutput.c
@@ -1303,7 +1303,7 @@ static void shade_one_light(LampRen *lar, ShadeInput *shi, ShadeResult *shr, int
}
/* 'is' is diffuse */
- if((ma->shade_flag & MA_CUBIC) && is>0.0f)
+ if((ma->shade_flag & MA_CUBIC) && is>0.0f && is<1.0f)
is= 3.0*is*is - 2.0*is*is*is; // nicer termination of shades
i= is*phongcorr;