From cb7edd7e4f534345c9955cb00c80c60cc7003f46 Mon Sep 17 00:00:00 2001 From: Vsevolod Kremianskii Date: Fri, 12 Feb 2021 20:06:36 +0700 Subject: [PATCH] chore: Increase maximum number of lights to 8 --- src/render/shaders.cpp | 2 +- src/render/types.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/render/shaders.cpp b/src/render/shaders.cpp index b70a1c32..542a6bc0 100644 --- a/src/render/shaders.cpp +++ b/src/render/shaders.cpp @@ -46,7 +46,7 @@ static constexpr GLchar *kShaderBaseHeader = R"END( const float PI = 3.14159265359; const int MAX_BONES = 128; -const int MAX_LIGHTS = 4; +const int MAX_LIGHTS = 8; const float SHADOW_FAR_PLANE = 10000.0; struct Light { diff --git a/src/render/types.h b/src/render/types.h index a1baa8bd..7e26ef05 100644 --- a/src/render/types.h +++ b/src/render/types.h @@ -24,7 +24,7 @@ namespace reone { namespace render { static constexpr int kNumCubeFaces = 6; -static constexpr int kMaxLightCount = 4; +static constexpr int kMaxLightCount = 8; /** * This is a hint to the engine when configuring texture properties.