From ad4634ce04cab3c41f88ed6c61efc62f4a2fe277 Mon Sep 17 00:00:00 2001 From: Nehon Date: Tue, 17 Nov 2015 14:54:59 +0100 Subject: [PATCH] .hdr files are now loaded in sRGB color space as there is no reason it should be loaded in linear space. --- .../src/plugins/java/com/jme3/texture/plugins/HDRLoader.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 611e208d4..8060197b2 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 @@ -308,9 +308,8 @@ public class HDRLoader implements AssetLoader { } in.close(); - dataStore.rewind(); - //TODO, HDR color space? considered linear here - return new Image(pixelFormat, width, height, dataStore, ColorSpace.Linear); + dataStore.rewind(); + return new Image(pixelFormat, width, height, dataStore, ColorSpace.sRGB); } public Object load(AssetInfo info) throws IOException {