Browse Source

Shaders: hint how to have a fully diffuse material with Phong.

pull/205/head
Vladimír Vondruš 8 years ago
parent
commit
b1c60c1b78
  1. 4
      src/Magnum/Shaders/Phong.h

4
src/Magnum/Shaders/Phong.h

@ -221,7 +221,9 @@ class MAGNUM_SHADERS_EXPORT Phong: public AbstractShaderProgram {
* @return Reference to self (for method chaining)
*
* Default value is @cpp 0xffffffff_rgbaf @ce. Color will be multiplied
* with specular texture if @ref Flag::SpecularTexture is set.
* with specular texture if @ref Flag::SpecularTexture is set. If you
* want to have a fully diffuse material, set specular color to
* @cpp 0x000000_rgbf @ce.
* @see @ref bindSpecularTexture()
*/
Phong& setSpecularColor(const Color4& color) {

Loading…
Cancel
Save