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.
This commit is contained in:
parent
822d327236
commit
50a9a8636b
@ -309,7 +309,8 @@ public class HDRLoader implements AssetLoader {
|
|||||||
in.close();
|
in.close();
|
||||||
|
|
||||||
dataStore.rewind();
|
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 {
|
public Object load(AssetInfo info) throws IOException {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user