private static byte[] MiniEXRWrite(uint _width, uint _height, Color[] _colorArray) { float[] array = new float[_colorArray.Length * 3]; for (int i = 0; i < _colorArray.Length; i++) { array[i * 3] = _colorArray[i].r; array[i * 3 + 1] = _colorArray[i].g; array[i * 3 + 2] = _colorArray[i].b; } return(MiniEXR.MiniEXRWrite(_width, _height, 3u, array)); }
private static void MiniEXRWrite(string _filePath, uint _width, uint _height, uint _channels, float[] _rgbaArray) { File.WriteAllBytes(_filePath, MiniEXR.MiniEXRWrite(_width, _height, _channels, _rgbaArray)); }
public static void MiniEXRWrite(string _filePath, uint _width, uint _height, Color[] _colorArray) { File.WriteAllBytes(_filePath, MiniEXR.MiniEXRWrite(_width, _height, _colorArray)); }