![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
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. | |
Per-frame data the culls read.
| float Vkm::Engine::VisibilityContext::screenSizeThresholdSq |
(minPixels / (projScaleY * viewportHeight))^2.
| 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.