X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Foccludedscene.h;h=1f447c39b2efec06ea25c3e0287185d5fb92d12e;hb=9e63512930bc7dace6dc169c65161961e5dcfcf6;hp=4d56db7a1ff6c565585a2dbd7d006a206d6c46d0;hpb=84e0e55710123e54617d342df852007f8b60af24;p=libs%2Fgl.git diff --git a/source/render/occludedscene.h b/source/render/occludedscene.h index 4d56db7a..1f447c39 100644 --- a/source/render/occludedscene.h +++ b/source/render/occludedscene.h @@ -15,8 +15,11 @@ class Mesh; 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 { @@ -36,7 +39,7 @@ private: const Program &bounding_shader; Blend no_color_write; DepthTest no_depth_write = { LEQUAL, false }; - std::vector renderables; + std::vector content; float occluder_min_size = 0.25f; mutable QueryPool queries; mutable std::vector occluded_cache;