5 #include <ngl/Colour.h>
31 ngl::Colour _diff_col,
32 ngl::Colour _spec_col,
86 ngl::Colour _diff_col,
87 ngl::Colour _spec_col,
90 float _falloff) :
Light(_pos, _diff_col, _spec_col, _diff_int, _spec_int, _falloff) {}
110 ngl::Colour _diff_col,
111 ngl::Colour _spec_col,
116 ngl::Vec3 _dir) :
Light(_pos, _diff_col,
This is a base class that will be used as template when creating concretes types of light...
PointLight(ngl::Vec3 _pos, ngl::Colour _diff_col, ngl::Colour _spec_col, float _diff_int, float _spec_int, float _falloff)
SpotLight(ngl::Vec3 _pos, ngl::Colour _diff_col, ngl::Colour _spec_col, float _diff_int, float _spec_int, float _falloff, float _angle, ngl::Vec3 _dir)
Core of my program, central unit that manages all the other classes almost.
float m_diff_int
Diffuse contribution intensity. It will multiply the diffuse colour when doing the Phong calculations...
Light(ngl::Vec3 _pos, ngl::Colour _diff_col, ngl::Colour _spec_col, float _diff_int, float _spec_int, float _falloff)
Light constructor.
ngl::Colour m_diff_col
Diffuse colour emmited by the light.
ngl::Vec3 m_pos
Light's position vector.
~Light()
Destructor for the Light objects.
ngl::Vec3 m_dir
Direction or aiming vector of the spotlight.
float m_falloff
Controlls the falloff of the light. Higher values will accentuate the decay.
ngl::Colour m_spec_col
Specular colour emmited by the light.
float m_angle
The cone angle in which light is emitted.
float m_spec_int
Specular contribution intensity. Will multiply the specular colour when doing the Phong calculations ...