Fix T46984: Image mapping bug
The issue was caused by wrong scaling applied on top of the image sampling. It seems there's no reason to apply alpha clipping when using EWA filtering, this filtering currently works in the way that it apples all needed clipping and scaling to a clipped kernel already.
This commit is contained in:
parent
5d564da3b6
commit
8c8215fb77
Notes:
blender-bot
2023-02-14 08:21:53 +01:00
Referenced by issue #46984, image mapping bug
|
@ -1248,7 +1248,9 @@ static int imagewraposa_aniso(Tex *tex, Image *ima, ImBuf *ibuf, const float tex
|
|||
texres->ta += levf*(texr.ta - texres->ta);
|
||||
}
|
||||
|
||||
alpha_clip_aniso(ibuf, fx-minx, fy-miny, fx+minx, fy+miny, extflag, texres);
|
||||
if (tex->texfilter != TXF_EWA) {
|
||||
alpha_clip_aniso(ibuf, fx-minx, fy-miny, fx+minx, fy+miny, extflag, texres);
|
||||
}
|
||||
}
|
||||
}
|
||||
else { /* no mipmap */
|
||||
|
@ -1290,7 +1292,9 @@ static int imagewraposa_aniso(Tex *tex, Image *ima, ImBuf *ibuf, const float tex
|
|||
}
|
||||
else {
|
||||
filterfunc(texres, ibuf, fx, fy, &AFD);
|
||||
alpha_clip_aniso(ibuf, fx-minx, fy-miny, fx+minx, fy+miny, extflag, texres);
|
||||
if (tex->texfilter != TXF_EWA) {
|
||||
alpha_clip_aniso(ibuf, fx-minx, fy-miny, fx+minx, fy+miny, extflag, texres);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue