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/LightCulling.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Runtime/Camera/LightCulling.h (limited to 'Runtime/Camera/LightCulling.h') diff --git a/Runtime/Camera/LightCulling.h b/Runtime/Camera/LightCulling.h new file mode 100644 index 0000000..a55de69 --- /dev/null +++ b/Runtime/Camera/LightCulling.h @@ -0,0 +1,7 @@ +#pragma once + +// Figures out all lights that are visible in the scene +void FindAndCullActiveLights (const SceneCullingParameters& sceneCullParameters, const ShadowCullData& cullData, ActiveLights& outLights); + +// Figures out lights for given object, no sorting. +void CullPerObjectLights (const ActiveLights& activeLights, const AABB& globalObjectAABB, const AABB& localObjectAABB, const Matrix4x4f& objectTransform, float invScale, int layerMask, bool lightmappedObject, bool dualLightmapsMode, ObjectLightIndices& outIndices); \ No newline at end of file -- cgit v1.1-26-g67d0