From ba69d9e52cbd0c37e351d83855f9a145e6b02bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 25 Nov 2018 20:10:40 -0800 Subject: [PATCH] Cleanup. --- src/image.cpp | 7 +++---- src/image_cubemap_filter.cpp | 12 ++++++------ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/image.cpp b/src/image.cpp index 8f1ed90..6bf0d52 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -1468,11 +1468,10 @@ namespace bimg // BC6H, BC7 // - // Reference: + // Reference(s): + // - https://web.archive.org/web/20181126035446/https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_texture_compression_bptc.txt + // - https://web.archive.org/web/20181126035538/https://docs.microsoft.com/en-us/windows/desktop/direct3d11/bc6h-format // - // https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_texture_compression_bptc.txt - // https://msdn.microsoft.com/en-us/library/windows/desktop/hh308952(v=vs.85).aspx - static const uint16_t s_bptcP2[] = { // 3210 0000000000 1111111111 2222222222 3333333333 0xcccc, // 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1 diff --git a/src/image_cubemap_filter.cpp b/src/image_cubemap_filter.cpp index ff1e899..a967926 100644 --- a/src/image_cubemap_filter.cpp +++ b/src/image_cubemap_filter.cpp @@ -352,9 +352,9 @@ namespace bimg float texelSolidAngle(float _u, float _v, float _invFaceSize) { - // Reference: - // - https://web.archive.org/web/20180614195754/http://www.mpia.de/~mathar/public/mathar20051002.pdf - // - https://web.archive.org/web/20180614195725/http://www.rorydriscoll.com/2012/01/15/cubemap-texel-solid-angle/ + // Reference(s): + // - https://web.archive.org/web/20180614195754/http://www.mpia.de/~mathar/public/mathar20051002.pdf + // - https://web.archive.org/web/20180614195725/http://www.rorydriscoll.com/2012/01/15/cubemap-texel-solid-angle/ // const float x0 = _u - _invFaceSize; const float x1 = _u + _invFaceSize; @@ -1085,9 +1085,9 @@ namespace bimg float applyLightingModel(float _specularPower, LightingModel::Enum _lightingModel) { - // Reference: - // - https://web.archive.org/web/20180622232018/https://seblagarde.wordpress.com/2012/06/10/amd-cubemapgen-for-physically-based-rendering/ - // - https://web.archive.org/web/20180622232041/https://seblagarde.wordpress.com/2012/03/29/relationship-between-phong-and-blinn-lighting-model/ + // Reference(s): + // - https://web.archive.org/web/20180622232018/https://seblagarde.wordpress.com/2012/06/10/amd-cubemapgen-for-physically-based-rendering/ + // - https://web.archive.org/web/20180622232041/https://seblagarde.wordpress.com/2012/03/29/relationship-between-phong-and-blinn-lighting-model/ // switch (_lightingModel) {