Class OcclusionDebugRenderer
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Debug visualization renderer for occluded object bounds in occlusion culling. Renders bounding boxes directly from GPU buffer using procedural vertex generation.
csharp
public class OcclusionDebugRendererInheritance
object ← OcclusionDebugRenderer
Constructors
OcclusionDebugRenderer(Scene, RendererContext)
Initializes the occlusion debug renderer and loads the debug shader.
csharp
public OcclusionDebugRenderer(Scene scene, RendererContext rendererContext)Parameters
scene Scene
Scene to visualize occlusion for.
rendererContext RendererContext
Renderer context for loading shaders and GPU resources.
Methods
BindAndClearBuffer()
Allocates (if needed) and clears the GPU buffer that receives occluded bounds from the culling shader.
csharp
public void BindAndClearBuffer()Render()
Renders wireframe bounding boxes for all occluded meshlets, color-coded by whether occlusion was correct.
csharp
public void Render()
