Lysa  0.0
Lysa 3D Engine
SceneData Struct Reference

Detailed Description

Per-frame scene uniform payload consumed by shaders.

Public Attributes

float2 screenSize
 
float4 cameraPosition
 
float4x4 projection
 
float4x4 view
 
float4x4 viewInverse
 
float nearPlane
 
float farPlane
 
float4 ambientLight {1.0f, 1.0f, 1.0f, 0.0f}
 
uint32 lightsCount {0}
 
uint32 bloomEnabled {0}
 
uint32 ssaoEnabled {0}
 
uint32 taaEnabled {0}
 
float4x4 previousProjection
 
float4x4 previousView
 
float2 jitter
 

Member Data Documentation

float4 ambientLight {1.0f, 1.0f, 1.0f, 0.0f}

Ambient light RGB color in xyz and strength in w.

uint32 bloomEnabled {0}

Toggle for bloom post-process (1 enabled, 0 disabled).

float4 cameraPosition

World-space camera position in XYZ; W is unused but needed for padding.

float farPlane

Camera far place

float2 jitter

TAA camera jitter

uint32 lightsCount {0}

Number of active lights currently bound.

float nearPlane

Camera near plane

float4x4 previousProjection

TAA previous frame projection matrix

float4x4 previousView

TAA previous frame view matrix

float4x4 projection

Projection matrix used for rendering.

float2 screenSize

Render target extent

uint32 ssaoEnabled {0}

Toggle for SSAO post-process (1 enabled, 0 disabled).

uint32 taaEnabled {0}

Toggle for TAA (1 enabled, 0 disabled).

float4x4 view

View matrix.

float4x4 viewInverse

Inverse of the view matrix.