DDSLoader now supports Luminance16f format (r16f)

This commit is contained in:
Nehon 2017-05-20 11:09:22 +02:00
parent 080a89e14b
commit 26ccaaea88

View File

@ -302,6 +302,12 @@ public class DDSLoader implements AssetLoader {
bpp = 64; bpp = 64;
pixelFormat = Image.Format.RGBA16F; pixelFormat = Image.Format.RGBA16F;
break; break;
case 111:
compressed = false;
bpp = 16;
pixelFormat = Format.Luminance16F;
grayscaleOrAlpha = true;
break;
default: default:
throw new IOException("Unknown fourcc: " + string(fourcc) + ", " + Integer.toHexString(fourcc)); throw new IOException("Unknown fourcc: " + string(fourcc) + ", " + Integer.toHexString(fourcc));
} }