This is a base class that will be used as template when creating concretes types of light.
More...
#include <Light.h>
|
| Light (ngl::Vec3 _pos, ngl::Colour _diff_col, ngl::Colour _spec_col, float _diff_int, float _spec_int, float _falloff) |
| Light constructor. More...
|
|
| ~Light () |
| Destructor for the Light objects. More...
|
|
|
ngl::Vec3 | m_pos |
| Light's position vector. More...
|
|
ngl::Colour | m_diff_col |
| Diffuse colour emmited by the light. More...
|
|
ngl::Colour | m_spec_col |
| Specular colour emmited by the light. More...
|
|
float | m_diff_int |
| Diffuse contribution intensity. It will multiply the diffuse colour when doing the Phong calculations More...
|
|
float | m_spec_int |
| Specular contribution intensity. Will multiply the specular colour when doing the Phong calculations More...
|
|
float | m_falloff |
| Controlls the falloff of the light. Higher values will accentuate the decay. More...
|
|
This is a base class that will be used as template when creating concretes types of light.
- Author
- Ramon Blanquer
- Todo:
- Implement
Kd
, Ka
and Ks
on the sphere
Definition at line 18 of file Light.h.
Light::Light |
( |
ngl::Vec3 |
_pos, |
|
|
ngl::Colour |
_diff_col, |
|
|
ngl::Colour |
_spec_col, |
|
|
float |
_diff_int, |
|
|
float |
_spec_int, |
|
|
float |
_falloff |
|
) |
| |
|
inline |
Light constructor.
- Parameters
-
[in] | _pos | Light's position. |
[in] | _diff_col | Diffuse colour emitted by the light. |
[in] | _spec_col | Specular colour emmited by the light. |
[in] | _diff_int | Sets the intensity of the diffuse colour emission. |
[in] | _spec_int | Sets the intensity of the specular emission. |
[in] | _falloff | Controlls how the light decays. |
Definition at line 30 of file Light.h.
float m_diff_int
Diffuse contribution intensity. It will multiply the diffuse colour when doing the Phong calculations...
ngl::Colour m_diff_col
Diffuse colour emmited by the light.
ngl::Vec3 m_pos
Light's position vector.
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_spec_int
Specular contribution intensity. Will multiply the specular colour when doing the Phong calculations ...
Destructor for the Light objects.
Definition at line 40 of file Light.h.
ngl::Colour Light::m_diff_col |
|
protected |
Diffuse colour emmited by the light.
Definition at line 53 of file Light.h.
Diffuse contribution intensity. It will multiply the diffuse colour when doing the Phong calculations
Definition at line 61 of file Light.h.
Controlls the falloff of the light. Higher values will accentuate the decay.
Definition at line 69 of file Light.h.
ngl::Colour Light::m_spec_col |
|
protected |
Specular colour emmited by the light.
Definition at line 57 of file Light.h.
Specular contribution intensity. Will multiply the specular colour when doing the Phong calculations
Definition at line 65 of file Light.h.
The documentation for this class was generated from the following file: