forked from bartvdbraak/blender
Error in combo of Spothalo + normal halo over sky, with OSA + gammacorrected
adding. :) Missing gamma correction...
This commit is contained in:
parent
a6bb0b7f79
commit
8c1d95abc7
@ -145,9 +145,9 @@ void *renderPixel(RE_COLBUFTYPE *collector, float x, float y, int *obdata, int m
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
void renderSpotHaloPixel(float x, float y, float* target)
|
||||
void renderSpotHaloPixel(float x, float y, float* fcol)
|
||||
{
|
||||
shadepixel(x, y, 0, 0, 0, target);
|
||||
shadepixel(x, y, 0, 0, 0, fcol);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1067,6 +1067,11 @@ static void renderZBufLine(int y, RE_COLBUFTYPE *colbuf1, RE_COLBUFTYPE *colbuf2
|
||||
/* onto the existing colour in the collector. */
|
||||
if(R.flag & R_LAMPHALO) {
|
||||
renderSpotHaloPixel(x, y, collector);
|
||||
if(do_gamma) {
|
||||
collector[0]= gammaCorrect(collector[0]);
|
||||
collector[1]= gammaCorrect(collector[1]);
|
||||
collector[2]= gammaCorrect(collector[2]);
|
||||
}
|
||||
addAlphaOverFloat(colbuf2+4, collector);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user