AABBCullingStrategy Class Template
NAABB culling strategy implementation. More...
Declaration
Public Member Typedefs Index
template <typename TMemberHandle> | |
| using | MemberHandle_type = TMemberHandle |
Public Member Functions Index
template <typename TMemberHandle> | |
| bool | shouldRender (const CullingContext< TMemberHandle > &ctx) noexcept |
|
Executes culling for the provided context. More... | |
Description
NAABB culling strategy implementation.
This strategy performs visibility test based on the AABBs of the members.
- Template Parameters
-
TStrongId Strong-id type used by entity handles.
Definition at line 29 of file AABBCullingStrategy.ixx.
Public Member Typedefs
MemberHandle_type
|
Definition at line 35 of file AABBCullingStrategy.ixx.
Public Member Functions
shouldRender()
| inline noexcept |
Executes culling for the provided context.
Executes culling based on the AABB available with the specified CullingContext. The implementation follows Miettinen (Real Time Rendering, 4th, pp. 970-971) and check if the distance s of the center of the AABB to the plane normal satisfies the following condition: If s plus the extent e of the AABB is < 0 for any plane, the AABB is outside. Otherwise, the represented member is rendered.
- Parameters
-
ctx Perspective camera context.
handle Scene member handle that would be tested by culling strategies.
The
Definition at line 51 of file AABBCullingStrategy.ixx.
Reference helios::engine::scene::registerComponents.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.