Class PointLight#

Inheritance Relationships#

Base Type#

Class Documentation#

class PointLight : public Light#

Public Functions

PointLight()#
PointLight(GLuint shadow_width, GLuint shadow_height, GLfloat near, GLfloat far, GLfloat red, GLfloat green, GLfloat blue, GLfloat radiance, GLfloat x_pos, GLfloat y_pos, GLfloat z_pos, GLfloat con, GLfloat lin, GLfloat exp)#
std::vector<glm::mat4> calculate_light_transform()#
void set_position(glm::vec3 position)#
inline std::shared_ptr<OmniDirShadowMap> get_omni_shadow_map()#
GLfloat get_far_plane() const#
glm::vec3 get_position()#
inline GLfloat get_constant_factor()#
inline GLfloat get_linear_factor()#
inline GLfloat get_exponent_factor()#
~PointLight()#

Protected Attributes

std::shared_ptr<OmniDirShadowMap> omni_dir_shadow_map#
glm::vec3 position#
GLfloat constant#
GLfloat linear#
GLfloat exponent#
GLfloat far_plane#