Skip to content

Vp::Light

#include "Viewport/scene/lights/Light.h"

Inherited by Vp::PointLight, Vp::SpotLight, Vp::SunLight

Public Functions

Name
virtual~Light() =default
virtual voidsetUniforms(const PhongShader & shader, int index) const =0

Public Attributes

Name
glm::vec3color
floatintensity
glm::vec3pos
glm::vec3specular

Public Functions Documentation

function ~Light

cpp
virtual ~Light() =default
virtual ~Light() =default

function setUniforms

cpp
virtual void setUniforms(
    const PhongShader & shader,
    int index
) const =0
virtual void setUniforms(
    const PhongShader & shader,
    int index
) const =0

Reimplemented by: Vp::PointLight::setUniforms, Vp::SpotLight::setUniforms, Vp::SunLight::setUniforms

Public Attributes Documentation

variable color

cpp
glm::vec3 color {glm::vec3(1)};
glm::vec3 color {glm::vec3(1)};

variable intensity

cpp
float intensity {0.6f};
float intensity {0.6f};

variable pos

cpp
glm::vec3 pos {glm::vec3(0.0f)};
glm::vec3 pos {glm::vec3(0.0f)};

variable specular

cpp
glm::vec3 specular {glm::vec3(1)};
glm::vec3 specular {glm::vec3(1)};

Updated on 2024-11-06 at 20:16:53 +0000