EXR importer for Unity Editor.
Currently only Windows platform is supported.
This package contains following native libraries.
- https://github.com/takazerker/EXRImporterPlugin
- https://github.com/AcademySoftwareFoundation/openexr
using (var exr = new EXRImporter.EXRFile(PathToEXRFile))
{
Texture2D temp = new Texture2D(exr.width, exr.height, TextureFormat.RGBAFloat, false);
var pixels = temp.GetRawTextureData<Color>();
exr.CopyRGBAData(pixels);
File.WriteAllBytes("test.exr", temp.EncodeToEXR());
DestroyImmediate(temp);
}