DDSLoader now supports Luminance16f format (r16f)

fix-456
Nehon 8 years ago
parent 080a89e14b
commit 26ccaaea88
  1. 6
      jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java

@ -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));
} }

Loading…
Cancel
Save