From 50a9a8636ba5a1c682fb95ac0a42095f967b22c6 Mon Sep 17 00:00:00 2001 From: Nehon Date: Fri, 20 Nov 2015 08:59:42 +0100 Subject: [PATCH] HDRLoader, reverted the change that loaded the HDR files in sRGB space, since the specs says that data is in linear space for this format. --- .../src/plugins/java/com/jme3/texture/plugins/HDRLoader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jme3-core/src/plugins/java/com/jme3/texture/plugins/HDRLoader.java b/jme3-core/src/plugins/java/com/jme3/texture/plugins/HDRLoader.java index 8060197b2..315d71955 100644 --- a/jme3-core/src/plugins/java/com/jme3/texture/plugins/HDRLoader.java +++ b/jme3-core/src/plugins/java/com/jme3/texture/plugins/HDRLoader.java @@ -309,7 +309,8 @@ public class HDRLoader implements AssetLoader { in.close(); dataStore.rewind(); - return new Image(pixelFormat, width, height, dataStore, ColorSpace.sRGB); + //HDR files color data is actually stored in linear space. + return new Image(pixelFormat, width, height, dataStore, ColorSpace.Linear); } public Object load(AssetInfo info) throws IOException {