class Program;
/**
-A scene that performs occlusion queries on renderables to skip those that are
+A scene which performs occlusion queries on renderables to skip those which are
entirely occluded by others.
+
+Renderables must have valid model matrices and bounding spheres to participate
+in occlusion culling. Those lacking one or both are always rendered.
*/
class OccludedScene: public Scene
{
const Program &bounding_shader;
Blend no_color_write;
DepthTest no_depth_write = { LEQUAL, false };
- std::vector<Renderable *> renderables;
+ std::vector<Renderable *> content;
float occluder_min_size = 0.25f;
mutable QueryPool queries;
mutable std::vector<OccludedRenderable> occluded_cache;