From 0140fd16fbcd3cb21397354b8179520b31a9694b Mon Sep 17 00:00:00 2001 From: Diego Hernan Borghetti Date: Mon, 21 Apr 2008 12:06:52 -0300 Subject: [PATCH] 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. Author: Brecht Van Lommel SVN revision: r14483 Date: 2008-04-19 23:58:11 +0200 (Sat, 19 Apr 2008) --- source/blender/render/intern/source/shadeoutput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/render/intern/source/shadeoutput.c b/source/blender/render/intern/source/shadeoutput.c index 638a2d4..4d8b5a3 100644 --- a/source/blender/render/intern/source/shadeoutput.c +++ b/source/blender/render/intern/source/shadeoutput.c @@ -1244,7 +1244,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; -- 2.11.4.GIT