Skip to content

Commit

Permalink
fix(Load): Use uncompressed HDR format
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeskydev committed Nov 14, 2023
1 parent 7001046 commit 996f478
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
// Adapted from https://github.com/mrdoob/three.js/blob/dev/examples/jsm/loaders/RGBELoader.js
// & http://www.graphics.cornell.edu/~bjw/rgbe.html, which it is based on.

using UnityEngine;
using System;
using System.IO;
using UnityEngine;

namespace Superla.RadianceHDR
{
Expand Down Expand Up @@ -49,9 +49,8 @@ public RadianceHDRTexture(byte[] data)
return;
}
}

texture = new Texture2D(header.width, header.height,
TextureFormat.RGBA32,
TextureFormat.RGB9e5Float,
false
);

Expand Down

0 comments on commit 996f478

Please sign in to comment.