Skip to content

Vp::SunLight

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

Inherits from Vp::Light

Public Functions

Name
virtual voidsetUniforms(const PhongShader & shader, int index) const override

Public Attributes

Name
glm::vec3direction

Additional inherited members

Public Functions inherited from Vp::Light

Name
virtual~Light() =default

Public Attributes inherited from Vp::Light

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

Public Functions Documentation

function setUniforms

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

Reimplements: Vp::Light::setUniforms

Public Attributes Documentation

variable direction

cpp
glm::vec3 direction = glm::vec3(0.8, 0, -1);
glm::vec3 direction = glm::vec3(0.8, 0, -1);

Updated on 2024-03-16 at 19:15:01 +0000