Struct ShadowSystem::SpotStruct
ClassList > ShadowSystem > SpotStruct
GPU layout for spot light data.
#include <ShadowSystem.h>
Public Attributes
| Type | Name |
|---|---|
| glm::vec3 | color = { 1 }RGB color in linear space. |
| float | cutoff = { 0.9f }Inner cone angle (cosine) |
| glm::vec3 | dir = { 1, 0, 0 }Spotlight direction (normalized) |
| float | outer_cutoff = { 0.8f }Outer cone angle (cosine) |
| glm::vec3 | pos = { 0 }World position. |
| float | power = { 1.0f }Luminous intensity. |
| int | use_shadow = { 1 }Shadow enabled flag (bool as int) |
Public Functions
| Type | Name |
|---|---|
| SpotStruct (const Light & light) Constructs SpotStruct fromLight object. |
Public Attributes Documentation
variable color
RGB color in linear space.
glm::vec3 ShadowSystem::SpotStruct::color;
variable cutoff
Inner cone angle (cosine)
float ShadowSystem::SpotStruct::cutoff;
variable dir
Spotlight direction (normalized)
glm::vec3 ShadowSystem::SpotStruct::dir;
variable outer_cutoff
Outer cone angle (cosine)
float ShadowSystem::SpotStruct::outer_cutoff;
variable pos
World position.
glm::vec3 ShadowSystem::SpotStruct::pos;
variable power
Luminous intensity.
float ShadowSystem::SpotStruct::power;
variable use_shadow
Shadow enabled flag (bool as int)
int ShadowSystem::SpotStruct::use_shadow;
Public Functions Documentation
function SpotStruct
Constructs SpotStruct fromLight object.
ShadowSystem::SpotStruct::SpotStruct (
const Light & light
)
Parameters:
lightSource light (must be SPOTLIGHT type)
The documentation for this class was generated from the following file src/render/ShadowSystem.h