Render feature: the END OF DIFFUSE BANDING!

http://www.blender.org/development/current-projects/changes-since-244/rendering-features/

Thanks Andy for poking and analysing, and Nathan for feedback!
This commit is contained in:
2007-12-28 13:11:27 +00:00
parent 1b72bc9792
commit a85c1c8a65
3 changed files with 10 additions and 3 deletions

View File

@@ -1297,7 +1297,10 @@ static void shade_one_light(LampRen *lar, ShadeInput *shi, ShadeResult *shr, int
else is= inp; // Lambert
}
/* i is diffuse */
/* 'is' is diffuse */
if((ma->shade_flag & MA_CUBIC) && is>0.0f)
is= 3.0*is*is - 2.0*is*is*is; // nicer termination of shades
i= is*phongcorr;
if(i>0.0f) {