From 54c7b8d775fa1b5fecfc1bf6980430d286304d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 30 Dec 2016 00:18:48 +0100 Subject: [PATCH] Math: document why unpacking is done this way. --- src/Magnum/Math/Packing.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Magnum/Math/Packing.h b/src/Magnum/Math/Packing.h index 9c16e1aa3..fc3df3b08 100644 --- a/src/Magnum/Math/Packing.h +++ b/src/Magnum/Math/Packing.h @@ -55,6 +55,8 @@ Float b = Math::unpack('\xFF'); @see @ref pack() */ +/* Signed conversion with max(val, -1) according to + https://www.opengl.org/registry/specs/EXT/texture_snorm.txt */ #ifdef DOXYGEN_GENERATING_OUTPUT template inline FloatingPoint unpack(const Integral& value); #else