From f89641907f8b45941f5e67891936ee8050a3ef92 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 26 May 2017 21:49:49 -0300 Subject: -Added EXR supprot for HDR (no BC6 compression yet though) -Improvements to texture importer -Proper detection of S3TC compression modes, and added all modes to Image -Fixes to non-power of 2 compressed textures, which should all be supported by GLES3 --- core/math/math_funcs.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/math/math_funcs.h') diff --git a/core/math/math_funcs.h b/core/math/math_funcs.h index 06ec77daae..6a5e12c3ce 100644 --- a/core/math/math_funcs.h +++ b/core/math/math_funcs.h @@ -278,6 +278,10 @@ public: return u.f32; } + static _ALWAYS_INLINE_ float half_to_float(const uint16_t h) { + return halfptr_to_float(&h); + } + static _ALWAYS_INLINE_ uint16_t make_half_float(float f) { union { -- cgit v1.2.3