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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-01-29 21:04:15 +0300
committerTon Roosendaal <ton@blender.org>2006-01-29 21:04:15 +0300
commit282fbcc763857cf5a6b81f65ddffd589462836b1 (patch)
tree2e979332feac06c65c84509b74ee11c799caa6cf /source
parenteee7393e1cb3d39c54e00631c6b2ca0f8f337625 (diff)
Previous fix was in wrong part of code... not alpha adding was wrong, but
there was an error in the zbuffer code! This should fix combinations of using Ztransp and Solid faces.
Diffstat (limited to 'source')
-rw-r--r--source/blender/render/intern/source/rendercore.c4
-rw-r--r--source/blender/render/intern/source/zbuf.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/render/intern/source/rendercore.c b/source/blender/render/intern/source/rendercore.c
index 6304abe67ff..87c1330d5ef 100644
--- a/source/blender/render/intern/source/rendercore.c
+++ b/source/blender/render/intern/source/rendercore.c
@@ -2569,7 +2569,7 @@ static void shadeDA_tile(RenderPart *pa, float *rectf, float *recta)
ys= (float)y + R.jit[samp][1];
shadepixel_sky(pa, xs, ys, zbuf, face, (1<<samp), fcol);
- if(acol && acol[3]!=0.0) addAlphaUnderFloat(fcol, acol);
+ if(acol && acol[3]!=0.0) addAlphaOverFloat(fcol, acol);
if(R.do_gamma) {
fcol[0]= gammaCorrect(fcol[0]);
fcol[1]= gammaCorrect(fcol[1]);
@@ -2585,7 +2585,7 @@ static void shadeDA_tile(RenderPart *pa, float *rectf, float *recta)
ys= (float)y+R.samples->centLut[b>>4];
shadepixel_sky(pa, xs, ys, zbuf, face, curmask, fcol);
- if(acol && acol[3]!=0.0) addAlphaUnderFloat(fcol, acol);
+ if(acol && acol[3]!=0.0) addAlphaOverFloat(fcol, acol);
if(R.do_gamma) {
fcol[0]= gammaCorrect(fcol[0]);
diff --git a/source/blender/render/intern/source/zbuf.c b/source/blender/render/intern/source/zbuf.c
index 1c2cdb2c616..529fb5bd535 100644
--- a/source/blender/render/intern/source/zbuf.c
+++ b/source/blender/render/intern/source/zbuf.c
@@ -1871,7 +1871,7 @@ static void copyto_abufz(RenderPart *pa, int *arectz, int sample)
memcpy(arectz, pa->rectz, 4*pa->rectx*pa->recty);
return;
}
- if( (R.r.mode & R_OSA)==0 || sample==0) return;
+ //if( (R.r.mode & R_OSA)==0 || sample==0) return;
rza= arectz;
rd= pa->rectdaps;