Phongo Clap RT
1.0
Simple Raytracing Renderer
|
Point light constructor. More...
#include <Light.h>
Public Member Functions | |
PointLight (ngl::Vec3 _pos, ngl::Colour _diff_col, ngl::Colour _spec_col, float _diff_int, float _spec_int, float _falloff) | |
~PointLight () | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
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... | |
Point light constructor.
[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. |
|
inline |
Definition at line 85 of file Light.h.