mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-23 03:06:29 +01:00
dynamic mipmap textures
This commit is contained in:
1 parent
6115d0f63b
commit
db2267ece7
4 files changed
+21
-2
No files matched your search
@@ -856,7 +856,7 @@ void Textures::loadTexture(BufferedImage *img, int id, bool blur, bool clamp)
|
||||
c2 = ( ( c2 >> 8 ) & 0x00ffffff ) | ( c2 << 24 );
|
||||
c3 = ( ( c3 >> 8 ) & 0x00ffffff ) | ( c3 << 24 );
|
||||
#endif
|
||||
int col = Texture::crispBlend(Texture::crispBlend(c0, c1), Texture::crispBlend(c2, c3));
|
||||
int col = Texture::averageMipColors(c0, c1, c2, c3);
|
||||
#ifndef _XBOX
|
||||
// 4J - and back from ARGB -> RGBA
|
||||
col = ( col << 8 ) | (( col >> 24 ) & 0xff);
|
||||
|
||||
Reference in new issue
Block a user