Browse Source

Shaders: doc++

pull/23/head
Vladimír Vondruš 13 years ago
parent
commit
593864be5c
  1. 6
      src/Shaders/Phong.h

6
src/Shaders/Phong.h

@ -39,9 +39,9 @@ namespace Magnum { namespace Shaders {
/** /**
@brief Phong shader @brief Phong shader
Uses ambient, diffuse and specular color or texture. You need to provide Uses ambient, diffuse and specular color or texture. For colored mesh you need
@ref Position and @ref Normal attributes in your triangle mesh and call at to provide @ref Position and @ref Normal attributes in your triangle mesh and
least @ref setTransformationMatrix(), @ref setNormalMatrix(), call at least @ref setTransformationMatrix(), @ref setNormalMatrix(),
@ref setProjectionMatrix(), @ref setDiffuseColor() and @ref setLightPosition(). @ref setProjectionMatrix(), @ref setDiffuseColor() and @ref setLightPosition().
If you want to use texture instead of color, you need to provide also If you want to use texture instead of color, you need to provide also

Loading…
Cancel
Save