Skip to content

Vp::PointLight

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

Inherits from Vp::Light

Public Functions

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

Public Attributes

Name
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
virtual void setUniforms(
    const PhongShader & shader,
    int index
) const

Reimplements: Vp::Light::setUniforms

Public Attributes Documentation

variable radius

cpp
float radius = 12.0f;
float radius = 12.0f;

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