KiCad PCB EDA Suite
|
Point light source based on http://ogldev.atspace.co.uk/www/tutorial20/tutorial20.html. More...
#include <light.h>
Public Member Functions | |
POINT_LIGHT (const SFVEC3F &aPos, const SFVEC3F &aColor) | |
void | GetLightParameters (const SFVEC3F &aHitPoint, SFVEC3F &aOutVectorToLight, SFVEC3F &aOutLightColor, float &aOutDistance) const override |
Get parameters from this light. | |
void | SetCastShadows (bool aCastShadow) |
bool | GetCastShadows () const |
Protected Attributes | |
bool | m_castShadow |
Private Attributes | |
SFVEC3F | m_position |
SFVEC3F | m_color |
float | m_att_constant |
float | m_att_linear |
float | m_att_exp |
Point light source based on http://ogldev.atspace.co.uk/www/tutorial20/tutorial20.html.
Definition at line 73 of file light.h.
References m_att_constant, m_att_exp, m_att_linear, LIGHT::m_castShadow, m_color, and m_position.
|
inlineinherited |
Definition at line 60 of file light.h.
References LIGHT::m_castShadow.
|
inlineoverridevirtual |
Get parameters from this light.
aHitPoint | input hit position |
aOutVectorToLight | a vector that points from the hit position in direction to the light |
aOutLightColor | the color of this light |
aOutDistance | the distance from the point to the light |
Implements LIGHT.
Definition at line 84 of file light.h.
References m_att_constant, m_att_exp, m_att_linear, m_color, and m_position.
|
inlineinherited |
Definition at line 59 of file light.h.
References LIGHT::m_castShadow.
Referenced by RENDER_3D_RAYTRACE_BASE::Reload().
|
private |
Definition at line 106 of file light.h.
Referenced by GetLightParameters(), and POINT_LIGHT().
|
private |
Definition at line 108 of file light.h.
Referenced by GetLightParameters(), and POINT_LIGHT().
|
private |
Definition at line 107 of file light.h.
Referenced by GetLightParameters(), and POINT_LIGHT().
|
protectedinherited |
Definition at line 63 of file light.h.
Referenced by DIRECTIONAL_LIGHT::DIRECTIONAL_LIGHT(), LIGHT::GetCastShadows(), LIGHT::LIGHT(), POINT_LIGHT(), and LIGHT::SetCastShadows().
|
private |
Definition at line 104 of file light.h.
Referenced by GetLightParameters(), and POINT_LIGHT().
|
private |
Definition at line 103 of file light.h.
Referenced by GetLightParameters(), and POINT_LIGHT().