浏览代码

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

Nehon 9 年之前
父节点
当前提交
ad4634ce04
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      jme3-core/src/plugins/java/com/jme3/texture/plugins/HDRLoader.java

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