Added ambient lighting
This commit is contained in:
parent
482205b96e
commit
3f6e2c2b6b
3 changed files with 61 additions and 6 deletions
|
@ -16,6 +16,7 @@ namespace oglu
|
|||
class Color;
|
||||
class AbstractTexture;
|
||||
class Transformable;
|
||||
class AmbientLight;
|
||||
|
||||
typedef std::shared_ptr<AbstractTexture> Texture;
|
||||
|
||||
|
@ -338,6 +339,28 @@ namespace oglu
|
|||
*/
|
||||
void SetUniform(GLint location, Transformable& v0, GLboolean transpose = GL_FALSE);
|
||||
|
||||
/**
|
||||
* @brief Set the ambient lighting.
|
||||
*
|
||||
* This function sets two variables, the ambient color and the intensity
|
||||
*
|
||||
* @param[in] colorName The name of the uniform holding the color information (must be vec3)
|
||||
* @param[in] intensityName The name of the uniform holding the intensity information (must be float)
|
||||
* @param[in] v0 A reference to an AmbientLight
|
||||
*/
|
||||
void SetUniform(const GLchar* colorName, const GLchar* intensityName, const AmbientLight& v0);
|
||||
|
||||
/**
|
||||
* @brief Set the ambient lighting.
|
||||
*
|
||||
* This function sets two variables, the ambient color and the intensity
|
||||
*
|
||||
* @param[in] colorLocation The location of the uniform holding the color information (must be vec3)
|
||||
* @param[in] intensityLocation The location of the uniform holding the intensity information (must be float)
|
||||
* @param[in] v0 A reference to an AmbientLight
|
||||
*/
|
||||
void SetUniform(GLint colorLocation, GLint intensityLocation, const AmbientLight& v0);
|
||||
|
||||
/**
|
||||
* @brief Set array of uniform float.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue