소스 검색

Merge branch 'master' into PBRisComing

Nehon 9 년 전
부모
커밋
cedb4d3c3e
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 {