Cogs.Core
Public Attributes | List of all members
Cogs::Core::LightData Struct Reference

Defines calculated light data. More...

#include <LightSystem.h>

Public Attributes

glm::vec4 lightPosition
 
glm::vec4 lightDirection
 
glm::vec4 lightColor
 
float lightRange = 0.f
 
uint16_t maxViewports = 4
 
uint16_t numViewports = maxViewports
 
uint16_t frameMod [6] = { 0 }
 
uint16_t frameOffset [6] = { 0 }
 
float nearDepths [kMaxCascades] = { 0.f }
 
float farDepths [kMaxCascades] = { 0.f }
 
RenderPassOptions passOptions
 
CameraData lightCameraData [kMaxCascades]
 
glm::vec4 cascadeLine
 
float shadowIntensityOffset = 0
 
TextureHandle shadowTexture
 
uint32_t arrayOffset = 0
 
uint32_t textureSize = 1024
 
uint32_t cubeOffset = 0
 
bool enabled = true
 
bool castShadows = false
 
bool tightShadowBounds = false
 
bool dynamicCascadeCount = false
 
ShadowUpdate shadowUpdate = ShadowUpdate::Default
 
bool frustaPointsCapture = false
 
LightCascadeFrustaPoints frustaPoints [kMaxCascades]
 
glm::mat4 lightRawProjection [kMaxCascades]
 

Detailed Description

Defines calculated light data.

Definition at line 33 of file LightSystem.h.

Member Data Documentation

◆ arrayOffset

uint32_t Cogs::Core::LightData::arrayOffset = 0

Definition at line 56 of file LightSystem.h.

◆ cascadeLine

glm::vec4 Cogs::Core::LightData::cascadeLine

Definition at line 52 of file LightSystem.h.

◆ castShadows

bool Cogs::Core::LightData::castShadows = false

Definition at line 62 of file LightSystem.h.

◆ cubeOffset

uint32_t Cogs::Core::LightData::cubeOffset = 0

Definition at line 59 of file LightSystem.h.

◆ dynamicCascadeCount

bool Cogs::Core::LightData::dynamicCascadeCount = false

Definition at line 64 of file LightSystem.h.

◆ enabled

bool Cogs::Core::LightData::enabled = true

Definition at line 61 of file LightSystem.h.

◆ farDepths

float Cogs::Core::LightData::farDepths[kMaxCascades] = { 0.f }

Definition at line 47 of file LightSystem.h.

◆ frameMod

uint16_t Cogs::Core::LightData::frameMod[6] = { 0 }

Definition at line 43 of file LightSystem.h.

◆ frameOffset

uint16_t Cogs::Core::LightData::frameOffset[6] = { 0 }

Definition at line 44 of file LightSystem.h.

◆ frustaPoints

LightCascadeFrustaPoints Cogs::Core::LightData::frustaPoints[kMaxCascades]

Definition at line 69 of file LightSystem.h.

◆ frustaPointsCapture

bool Cogs::Core::LightData::frustaPointsCapture = false

Definition at line 68 of file LightSystem.h.

◆ lightCameraData

CameraData Cogs::Core::LightData::lightCameraData[kMaxCascades]

Definition at line 51 of file LightSystem.h.

◆ lightColor

glm::vec4 Cogs::Core::LightData::lightColor

Definition at line 37 of file LightSystem.h.

◆ lightDirection

glm::vec4 Cogs::Core::LightData::lightDirection

Definition at line 36 of file LightSystem.h.

◆ lightPosition

glm::vec4 Cogs::Core::LightData::lightPosition

Definition at line 35 of file LightSystem.h.

◆ lightRange

float Cogs::Core::LightData::lightRange = 0.f

Definition at line 38 of file LightSystem.h.

◆ lightRawProjection

glm::mat4 Cogs::Core::LightData::lightRawProjection[kMaxCascades]

Definition at line 70 of file LightSystem.h.

◆ maxViewports

uint16_t Cogs::Core::LightData::maxViewports = 4

Definition at line 40 of file LightSystem.h.

◆ nearDepths

float Cogs::Core::LightData::nearDepths[kMaxCascades] = { 0.f }

Definition at line 46 of file LightSystem.h.

◆ numViewports

uint16_t Cogs::Core::LightData::numViewports = maxViewports

Definition at line 41 of file LightSystem.h.

◆ passOptions

RenderPassOptions Cogs::Core::LightData::passOptions

Definition at line 49 of file LightSystem.h.

◆ shadowIntensityOffset

float Cogs::Core::LightData::shadowIntensityOffset = 0

Definition at line 54 of file LightSystem.h.

◆ shadowTexture

TextureHandle Cogs::Core::LightData::shadowTexture

Definition at line 55 of file LightSystem.h.

◆ shadowUpdate

ShadowUpdate Cogs::Core::LightData::shadowUpdate = ShadowUpdate::Default

Definition at line 66 of file LightSystem.h.

◆ textureSize

uint32_t Cogs::Core::LightData::textureSize = 1024

Definition at line 57 of file LightSystem.h.

◆ tightShadowBounds

bool Cogs::Core::LightData::tightShadowBounds = false

Definition at line 63 of file LightSystem.h.


The documentation for this struct was generated from the following file: