Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
EngineCore::LodConfigUBO Struct Reference

LOD configuration for GPU shader selection. Updated per-frame with camera and screen information. More...

#include <RenderData.h>

Public Attributes

float errorThresholdPixels
 Target pixel error (default 1.0)
float cameraProj11
 projection[1][1] = cot(fov/2)
float cameraNear
 Positive near plane distance.
uint32_t ditherEnabled
 1 = dither transitions, 0 = hard cut
glm::vec4 cameraPosition
 World-space camera position.
glm::vec2 screenSize
 Render target dimensions.
glm::vec2 _padding
 Pad to 48 bytes (std140 alignment)

Detailed Description

LOD configuration for GPU shader selection. Updated per-frame with camera and screen information.

Layout matches GLSL std140 LodConfig uniform (48 bytes).

Date
2026-01-26
Author
Konstantin Passig

Definition at line 497 of file RenderData.h.

Member Data Documentation

◆ _padding

glm::vec2 EngineCore::LodConfigUBO::_padding

Pad to 48 bytes (std140 alignment)

Definition at line 505 of file RenderData.h.

◆ cameraNear

float EngineCore::LodConfigUBO::cameraNear

Positive near plane distance.

Definition at line 501 of file RenderData.h.

◆ cameraPosition

glm::vec4 EngineCore::LodConfigUBO::cameraPosition

World-space camera position.

Definition at line 503 of file RenderData.h.

◆ cameraProj11

float EngineCore::LodConfigUBO::cameraProj11

projection[1][1] = cot(fov/2)

Definition at line 500 of file RenderData.h.

◆ ditherEnabled

uint32_t EngineCore::LodConfigUBO::ditherEnabled

1 = dither transitions, 0 = hard cut

Definition at line 502 of file RenderData.h.

◆ errorThresholdPixels

float EngineCore::LodConfigUBO::errorThresholdPixels

Target pixel error (default 1.0)

Definition at line 499 of file RenderData.h.

◆ screenSize

glm::vec2 EngineCore::LodConfigUBO::screenSize

Render target dimensions.

Definition at line 504 of file RenderData.h.


The documentation for this struct was generated from the following file:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Renderer/RenderData.h