Skip to content

Vp::SpotLight

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

Inherits from Vp::Light

Public Functions

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

Public Attributes

Name
floatcutoffAngle
floatcutoffSoftAngle
glm::vec3direction
floatradius

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 cutoffAngle

cpp
float cutoffAngle = 10;
float cutoffAngle = 10;

variable cutoffSoftAngle

cpp
float cutoffSoftAngle = 6;
float cutoffSoftAngle = 6;

variable direction

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

variable radius

cpp
float radius = 70.0f;
float radius = 70.0f;

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