diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Camera/LightCulling.h |
Diffstat (limited to 'Runtime/Camera/LightCulling.h')
-rw-r--r-- | Runtime/Camera/LightCulling.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |