Browse Source

Shaders: doc++

pull/268/head
Vladimír Vondruš 8 years ago
parent
commit
460df2b97c
  1. 20
      src/Magnum/Shaders/Phong.h

20
src/Magnum/Shaders/Phong.h

@ -122,9 +122,23 @@ class MAGNUM_SHADERS_EXPORT Phong: public GL::AbstractShaderProgram {
* @see @ref Flags, @ref flags() * @see @ref Flags, @ref flags()
*/ */
enum class Flag: UnsignedByte { enum class Flag: UnsignedByte {
AmbientTexture = 1 << 0, /**< The shader uses ambient texture instead of color */ /**
DiffuseTexture = 1 << 1, /**< The shader uses diffuse texture instead of color */ * Multiply ambient color with a texture.
SpecularTexture = 1 << 2 /**< The shader uses specular texture instead of color */ * @see @ref setAmbientColor(), @ref setAmbientTexture()
*/
AmbientTexture = 1 << 0,
/**
* Multiply diffuse color with a texture.
* @see @ref setDiffuseColor(), @ref setDiffuseTexture()
*/
DiffuseTexture = 1 << 1,
/**
* Multiply specular color with a texture.
* @see @ref setSpecularColor(), @ref setSpecularTexture()
*/
SpecularTexture = 1 << 2
}; };
/** /**

Loading…
Cancel
Save