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:
authorTon Roosendaal <ton@blender.org>2005-12-13 16:17:29 +0300
committerTon Roosendaal <ton@blender.org>2005-12-13 16:17:29 +0300
commitb284a95222223ab2ff0028ea2a6c15fadf707c88 (patch)
tree0d9dfcdd3c2002bbc1b293b35dbc9358ca54426e /source/blender/render
parente0dc311fc22f47e70e8b05266754f43548eff234 (diff)
Bugfix #3552
Another ancient bug in unified render... the lamphalo wasn't filled in correctly over sky, especially when the background had halos (or stars). Only shows when using filters other than box though.
Diffstat (limited to 'source/blender/render')
-rw-r--r--source/blender/render/intern/source/vanillaRenderPipe.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/render/intern/source/vanillaRenderPipe.c b/source/blender/render/intern/source/vanillaRenderPipe.c
index b5b70aa0e0d..968f3e35e73 100644
--- a/source/blender/render/intern/source/vanillaRenderPipe.c
+++ b/source/blender/render/intern/source/vanillaRenderPipe.c
@@ -1065,9 +1065,6 @@ static void renderZBufLine(int y, RE_COLBUFTYPE *colbuf1, RE_COLBUFTYPE *colbuf2
j[2]= collector[2]; j[3]= collector[3];
}
- sampleFloatColV2FloatColVFilter(sampcol, colbuf1, colbuf2, colbuf3, osaNr);
-
-
/* Spothalos are part of the normal pixelshader, so for covered */
/* pixels they are handled ok. They are 'normally' alpha blended */
/* onto the existing colour in the collector. */
@@ -1078,8 +1075,15 @@ static void renderZBufLine(int y, RE_COLBUFTYPE *colbuf1, RE_COLBUFTYPE *colbuf2
collector[1]= gammaCorrect(collector[1]);
collector[2]= gammaCorrect(collector[2]);
}
- addAlphaOverFloat(colbuf2+4, collector);
+
+ j = sampcol;
+ for(i = 0; i < osaNr; i++, j+=4) {
+ addAlphaOverFloat(j, collector);
+ }
}
+
+ sampleFloatColV2FloatColVFilter(sampcol, colbuf1, colbuf2, colbuf3, osaNr);
+
}
}
}