Added ambient lighting
This commit is contained in:
parent
dea312a704
commit
482205b96e
9 changed files with 69 additions and 9 deletions
22
include/lighting/ambient.hpp
Normal file
22
include/lighting/ambient.hpp
Normal file
|
@ -0,0 +1,22 @@
|
|||
#ifndef AMBIENT_HPP
|
||||
#define AMBIENT_HPP
|
||||
|
||||
#include <core.hpp>
|
||||
#include <color.hpp>
|
||||
|
||||
namespace oglu
|
||||
{
|
||||
class OGLU_API AmbientLight
|
||||
{
|
||||
public:
|
||||
AmbientLight();
|
||||
AmbientLight(GLfloat r, GLfloat g, GLfloat b, GLfloat intensity);
|
||||
AmbientLight(const Color& color, GLfloat intensity);
|
||||
AmbientLight(const AmbientLight& other);
|
||||
|
||||
GLfloat intensity;
|
||||
Color color;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue