15 #include <vsg/app/Camera.h>
16 #include <vsg/core/Visitor.h>
17 #include <vsg/maths/transform.h>
29 void apply(
Node& node)
override;
31 void apply(
Transform& transform)
override;
32 void apply(
LOD& lod)
override;
38 unsigned int numTiles = 0;
42 using Polytope = std::array<Plane, 4>;
43 using MatrixStack = std::stack<dmat4>;
44 using PolytopeStack = std::stack<Polytope>;
46 MatrixStack projectionMatrixStack;
47 MatrixStack modelviewMatrixStack;
49 Polytope _frustumUnit;
50 Polytope _frustumProjected;
51 PolytopeStack _frustumStack;
54 inline std::pair<double, double> computeDistanceAndRF(
const dsphere& bs)
const
56 const auto& proj = projectionMatrixStack.top();
57 const auto& mv = modelviewMatrixStack.top();
60 auto dist = std::abs(mv[0][2] * bs.x + mv[1][2] * bs.y + mv[2][2] * bs.z + mv[3][2]);
Definition: CullNode.h:25
Definition: LoadPagedLOD.h:25
Definition: PagedLOD.h:36
Definition: Visitor.h:147