Browse Source

Shaders: document relation to glAlphaFunc().

pull/491/head
Vladimír Vondruš 5 years ago
parent
commit
40ee8f0934
  1. 4
      src/Magnum/Shaders/Flat.h
  2. 4
      src/Magnum/Shaders/Phong.h

4
src/Magnum/Shaders/Flat.h

@ -463,6 +463,10 @@ template<UnsignedInt dimensions> 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<dimensions>& setAlphaMask(Float mask);

4
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);

Loading…
Cancel
Save