From 40ee8f093475363f38347dbe6e9d360016b92c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 29 Dec 2020 21:23:20 +0100 Subject: [PATCH] Shaders: document relation to glAlphaFunc(). --- src/Magnum/Shaders/Flat.h | 4 ++++ src/Magnum/Shaders/Phong.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/Magnum/Shaders/Flat.h b/src/Magnum/Shaders/Flat.h index 2973a4e8f..225388322 100644 --- a/src/Magnum/Shaders/Flat.h +++ b/src/Magnum/Shaders/Flat.h @@ -463,6 +463,10 @@ template class MAGNUM_SHADERS_EXPORT Flat: public GL::Ab * enabled. Fragments with alpha values smaller than the mask value * will be discarded. Initial value is @cpp 0.5f @ce. See the flag * documentation for further information. + * + * This corresponds to @m_class{m-doc-external} [glAlphaFunc()](https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glAlphaFunc.xml) + * in classic OpenGL. + * @m_keywords{glAlphaFunc()} */ Flat& setAlphaMask(Float mask); diff --git a/src/Magnum/Shaders/Phong.h b/src/Magnum/Shaders/Phong.h index f0501a6c7..88991e033 100644 --- a/src/Magnum/Shaders/Phong.h +++ b/src/Magnum/Shaders/Phong.h @@ -741,6 +741,10 @@ class MAGNUM_SHADERS_EXPORT Phong: public GL::AbstractShaderProgram { * enabled. Fragments with alpha values smaller than the mask value * will be discarded. Initial value is @cpp 0.5f @ce. See the flag * documentation for further information. + * + * This corresponds to @m_class{m-doc-external} [glAlphaFunc()](https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glAlphaFunc.xml) + * in classic OpenGL. + * @m_keywords{glAlphaFunc()} */ Phong& setAlphaMask(Float mask);