vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::VisibilityContext Struct Reference

Per-frame data the culls read. More...

#include <culling.h>

Public Attributes

glm::vec3 cameraPosition
 World space.
float minPixels
 Pixels below which screen-size culling rejects; <= 0 disables.
float maxDistance
 Distance beyond which distance culling rejects; <= 0 disables.
float screenSizeThresholdSq
float lodDistanceScale = 1.0f
 LOD::REFERENCE_P11 over the view's projection[1][1]: what a distance counts for in LOD selection.
bool perspective = true
 Whether the view divides by depth.

Detailed Description

Per-frame data the culls read.

Member Data Documentation

◆ screenSizeThresholdSq

float Vkm::Engine::VisibilityContext::screenSizeThresholdSq

(minPixels / (projScaleY * viewportHeight))^2.

◆ perspective

bool Vkm::Engine::VisibilityContext::perspective = true

Whether the view divides by depth.

False turns screen-size culling off: orthographic size does not fall with distance.


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