.hdr files are now loaded in sRGB color space as there is no reason it should be loaded in linear space.

cleanup_build_scripts
Nehon 9 years ago
parent d57147e392
commit ad4634ce04
  1. 3
      jme3-core/src/plugins/java/com/jme3/texture/plugins/HDRLoader.java

@ -309,8 +309,7 @@ public class HDRLoader implements AssetLoader {
in.close(); in.close();
dataStore.rewind(); dataStore.rewind();
//TODO, HDR color space? considered linear here return new Image(pixelFormat, width, height, dataStore, ColorSpace.sRGB);
return new Image(pixelFormat, width, height, dataStore, ColorSpace.Linear);
} }
public Object load(AssetInfo info) throws IOException { public Object load(AssetInfo info) throws IOException {

Loading…
Cancel
Save