Struct ShadowSystem::SunStruct
ClassList > ShadowSystem > SunStruct
GPU layout for sun/directional light data.
#include <ShadowSystem.h>
Public Attributes
| Type | Name |
|---|---|
| glm::vec3 | color = { 1 }RGB color in linear space. |
| glm::vec3 | dir = { 1, 0, 0 }Light direction (normalized) |
| glm::vec3 | pos = { 0 }World position (for visualization) |
| float | power = { 1.0f }Luminous intensity. |
| glm::mat4 | proj_trans Light-space projection matrix. |
| int | use_shadow = { 1 }Shadow enabled flag (bool as int) |
Public Functions
| Type | Name |
|---|---|
| SunStruct (const Light & light, const glm::mat4 & proj) Constructs SunStruct fromLight object and its projection matrix. |
Public Attributes Documentation
variable color
RGB color in linear space.
glm::vec3 ShadowSystem::SunStruct::color;
variable dir
Light direction (normalized)
glm::vec3 ShadowSystem::SunStruct::dir;
variable pos
World position (for visualization)
glm::vec3 ShadowSystem::SunStruct::pos;
variable power
Luminous intensity.
float ShadowSystem::SunStruct::power;
variable proj_trans
Light-space projection matrix.
glm::mat4 ShadowSystem::SunStruct::proj_trans;
variable use_shadow
Shadow enabled flag (bool as int)
int ShadowSystem::SunStruct::use_shadow;
Public Functions Documentation
function SunStruct
Constructs SunStruct fromLight object and its projection matrix.
ShadowSystem::SunStruct::SunStruct (
const Light & light,
const glm::mat4 & proj
)
Parameters:
lightSource light (must be SUNLIGHT type)projLight-space projection matrix owned by ShadowSystem
The documentation for this class was generated from the following file src/render/ShadowSystem.h