From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Camera/SceneCulling.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Runtime/Camera/SceneCulling.h (limited to 'Runtime/Camera/SceneCulling.h') diff --git a/Runtime/Camera/SceneCulling.h b/Runtime/Camera/SceneCulling.h new file mode 100644 index 0000000..baae99e --- /dev/null +++ b/Runtime/Camera/SceneCulling.h @@ -0,0 +1,18 @@ +#pragma once + +#include "Runtime/Utilities/dynamic_array.h" + +struct CullingOutput; +struct SceneCullingParameters; +class IntermediateRenderer; +struct SceneNode; +class AABB; +class Sphere; +class IntermediateRenderers; + +void CullSceneWithUmbra (SceneCullingParameters& cullingParams, CullingOutput& output); +void CullSceneWithoutUmbra (const SceneCullingParameters& cullingParams, CullingOutput& output); + +bool IsNodeVisible (const SceneNode& node, const AABB& aabb, const SceneCullingParameters& params); + +void CullShadowCastersWithUmbra (const SceneCullingParameters& cullingParams, CullingOutput& output); \ No newline at end of file -- cgit v1.1-26-g67d0