mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-08-28 22:30:04 -04:00
Merge pull request #443 from adroitwhiz/effects-nearest
Always use linear interpolation on vector skins with distortion effects applied
This commit is contained in:
commit
2d4419c929
1 changed files with 10 additions and 0 deletions
|
@ -433,6 +433,16 @@ class Drawable {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If the effect bits for mosaic, pixelate, whirl, or fisheye are set, use linear
|
||||||
|
if ((this._effectBits & (
|
||||||
|
ShaderManager.EFFECT_INFO.fisheye.mask |
|
||||||
|
ShaderManager.EFFECT_INFO.whirl.mask |
|
||||||
|
ShaderManager.EFFECT_INFO.pixelate.mask |
|
||||||
|
ShaderManager.EFFECT_INFO.mosaic.mask
|
||||||
|
)) !== 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// We can't use nearest neighbor unless we are a multiple of 90 rotation
|
// We can't use nearest neighbor unless we are a multiple of 90 rotation
|
||||||
if (this._direction % 90 !== 0) {
|
if (this._direction % 90 !== 0) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue