瀏覽代碼

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.

Nehon 10 年之前
父節點
當前提交
50a9a8636b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      jme3-core/src/plugins/java/com/jme3/texture/plugins/HDRLoader.java

+ 2 - 1
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 {