Load OpenEXR as PF_FLOAT16_RGBA
Posted: Tue Sep 04, 2018 3:01 pm
I'd like to load an OpenEXR image as PF_FLOAT16_RGBA (since it gets loaded as PF_FLOAT32_RGBA by default). I've tried to following this old thread without success.
Doing so
I can see with RenderDoc that texture takes R16G16B16A16_FLOAT format, but it's content is garbage.
Here you can find the OpenEXR image I'm using. I'm pretty sure its format is correctly floating point with 16 bits of precision.
Doing so
Code: Select all
texture_unit 0
{
texture Curve.exr 2d 0 PF_FLOAT16_RGBA
tex_address_mode clamp
}
Here you can find the OpenEXR image I'm using. I'm pretty sure its format is correctly floating point with 16 bits of precision.