From 26ccaaea8800701213fb01e72d5ff7058516b103 Mon Sep 17 00:00:00 2001 From: Nehon Date: Sat, 20 May 2017 11:09:22 +0200 Subject: [PATCH] DDSLoader now supports Luminance16f format (r16f) --- .../plugins/java/com/jme3/texture/plugins/DDSLoader.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java b/jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java index 948abe87e..5132fbd2f 100644 --- a/jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java +++ b/jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java @@ -302,6 +302,12 @@ public class DDSLoader implements AssetLoader { bpp = 64; pixelFormat = Image.Format.RGBA16F; break; + case 111: + compressed = false; + bpp = 16; + pixelFormat = Format.Luminance16F; + grayscaleOrAlpha = true; + break; default: throw new IOException("Unknown fourcc: " + string(fourcc) + ", " + Integer.toHexString(fourcc)); }