Bug fix #3900, washed out AO colors

Darn typo in AO code... it only multiplied the red compononent for AO. :)
This commit is contained in:
2006-04-01 15:35:25 +00:00
parent 01b827fa6f
commit 5f12ccd0f1

View File

@@ -1844,8 +1844,8 @@ void shade_lamp_loop(ShadeInput *shi, ShadeResult *shr)
if(R.wrld.mode & WO_AMB_OCC) {
ambient_occlusion(shi, shr);
shr->diff[0] += shi->r*shr->ao[0];
shr->diff[1] += shi->r*shr->ao[1];
shr->diff[2] += shi->r*shr->ao[2];
shr->diff[1] += shi->g*shr->ao[1];
shr->diff[2] += shi->b*shr->ao[2];
}
for(go=lights->first; go; go= go->next) {