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>2006-06-27 14:28:00 +0400
committerTon Roosendaal <ton@blender.org>2006-06-27 14:28:00 +0400
commit2447ce7ee79aca318e9b9f3da0cc88b4cba94b6a (patch)
tree3d4940c13b11bf8401baf1c15d9659ef657cf590
parentf7c9c9987763bad926ffde91943d9db8964d4388 (diff)
Bugfix #4475
Sequencer effect "Glow" did not work for float images (like render result). Reason: threshold value for glow was still integer range.
-rw-r--r--source/blender/src/seqeffects.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/seqeffects.c b/source/blender/src/seqeffects.c
index 493e43cfc33..41f8f4cb846 100644
--- a/source/blender/src/seqeffects.c
+++ b/source/blender/src/seqeffects.c
@@ -2129,8 +2129,8 @@ static void RVBlurBitmap2_float ( float* map, int width,int height,
for (x=0;x<halfWidth;x++){
index=(x+y*width)*4;
fx=0;
- curColor[0]=curColor[1]=curColor[2]=0;
- curColor2[0]=curColor2[1]=curColor2[2]=0;
+ curColor[0]=curColor[1]=curColor[2]=0.0f;
+ curColor2[0]=curColor2[1]=curColor2[2]=0.0f;
for (i=x-halfWidth;i<x+halfWidth;i++){
if ((i>=0)&&(i<width)){
@@ -2304,7 +2304,7 @@ static void RVIsolateHighlights_byte (unsigned char* in, unsigned char* out,
}
static void RVIsolateHighlights_float (float* in, float* out,
- int width, int height, int threshold,
+ int width, int height, float threshold,
float boost, float clamp)
{
int x,y,index;
@@ -2383,7 +2383,7 @@ static void do_glow_effect_float(Sequence *seq, float facf0, float facf1,
float *inbuf = rect1;
GlowVars *glow = (GlowVars *)seq->effectdata;
- RVIsolateHighlights_float(inbuf, outbuf , x, y, glow->fMini*765, glow->fBoost, glow->fClamp);
+ RVIsolateHighlights_float(inbuf, outbuf , x, y, glow->fMini*3.0f, glow->fBoost, glow->fClamp);
RVBlurBitmap2_float (outbuf, x, y, glow->dDist,glow->dQuality);
if (!glow->bNoComp)
RVAddBitmaps_float (inbuf , outbuf, outbuf, x, y);