Vp::SpotLight
#include "Viewport/scene/lights/SpotLight.h"
Inherits from Vp::Light
Public Functions
| Name | |
|---|---|
| virtual void | setUniforms(const PhongShader & shader, int index) const override |
Public Attributes
| Name | |
|---|---|
| float | cutoffAngle |
| float | cutoffSoftAngle |
| glm::vec3 | direction |
| float | radius |
Additional inherited members
Public Functions inherited from Vp::Light
| Name | |
|---|---|
| virtual | ~Light() =default |
Public Attributes inherited from Vp::Light
| Name | |
|---|---|
| glm::vec3 | color |
| float | intensity |
| glm::vec3 | pos |
| glm::vec3 | specular |
Public Functions Documentation
function setUniforms
cpp
virtual void setUniforms(
const PhongShader & shader,
int index
) const overridevirtual void setUniforms(
const PhongShader & shader,
int index
) const overrideReimplements: 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 2025-09-07 at 16:13:51 +0000