Toast Engine
Loading...
Searching...
No Matches
clustered_lighting_constants.hpp
Go to the documentation of this file.
1
4
5#pragma once
6
7#include <cstdint>
8
9namespace renderer::clustered_lighting {
10
11inline constexpr uint32_t k_cluster_dim_x = 16;
12inline constexpr uint32_t k_cluster_dim_y = 9;
13inline constexpr uint32_t k_cluster_dim_z = 24;
14inline constexpr uint32_t k_cluster_count = k_cluster_dim_x * k_cluster_dim_y * k_cluster_dim_z;
15inline constexpr uint32_t k_max_lights_per_cluster = 128;
16inline constexpr uint32_t k_max_lights = 512;
17
18// Slice 0 still starts at the camera near plane
19inline constexpr float k_min_cluster_near = 0.1f;
20inline constexpr float k_min_cluster_depth_ratio = 4.0f;
21
22}