Lysa  0.0
Lysa 3D Engine
SceneData Struct Reference

Detailed Description

Per-frame scene uniform payload consumed by shaders.

Contains camera transforms, ambient lighting, and feature toggles. The layout/alignas qualifiers are chosen to satisfy typical std140/std430 alignment constraints on most backends.

Public Attributes

float3 cameraPosition
 
float4x4 projection
 
float4x4 view
 
float4x4 viewInverse
 
float4 ambientLight {1.0f, 1.0f, 1.0f, 1.0f}
 
uint32 lightsCount {0}
 
uint32 bloomEnabled {0}
 
uint32 ssaoEnabled {0}
 

Member Data Documentation

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

Ambient light RGB color in xyz and strength in w.

uint32 bloomEnabled {0}

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

float3 cameraPosition

World-space camera position in XYZ; W is unused.

uint32 lightsCount {0}

Number of active lights currently bound.

float4x4 projection

Projection matrix used for rendering (clip-from-view).

uint32 ssaoEnabled {0}

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

float4x4 view

View matrix (view-from-world).

float4x4 viewInverse

Inverse of the view matrix (world-from-view).