mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-03-28 14:56:22 +01:00
Implement bilinear scaling for non-simple sprites
This commit is contained in:
parent
8fcd6dd605
commit
27a0e67aa0
1 changed files with 4 additions and 4 deletions
|
@ -666,10 +666,10 @@ void Sprite::draw()
|
|||
|
||||
if (renderEffect)
|
||||
{
|
||||
if (scalingMethod != NearestNeighbor)
|
||||
if (scalingMethod > Bilinear)
|
||||
{
|
||||
Debug() << "BUG: Smooth SpriteShader not implemented:" << scalingMethod;
|
||||
scalingMethod = NearestNeighbor;
|
||||
scalingMethod = Bilinear;
|
||||
}
|
||||
|
||||
SpriteShader &shader = shState->shaders().sprite;
|
||||
|
@ -713,10 +713,10 @@ void Sprite::draw()
|
|||
}
|
||||
else if (p->opacity != 255)
|
||||
{
|
||||
if (scalingMethod != NearestNeighbor)
|
||||
if (scalingMethod > Bilinear)
|
||||
{
|
||||
Debug() << "BUG: Smooth AlphaSpriteShader not implemented:" << scalingMethod;
|
||||
scalingMethod = NearestNeighbor;
|
||||
scalingMethod = Bilinear;
|
||||
}
|
||||
|
||||
AlphaSpriteShader &shader = shState->shaders().alphaSprite;
|
||||
|
|
Loading…
Add table
Reference in a new issue