Skip to content

Commit

Permalink
fix(rendering): reduce max number of point lights
Browse files Browse the repository at this point in the history
Uniform PerScene is becoming larger than the max limit in some GPUs
  • Loading branch information
tomas7770 committed Nov 26, 2024
1 parent 098d1a1 commit f9b9304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engine/assets/render/deferred_shading.fs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ layout(std140) uniform PerScene

// Lights data.
DirectionalLight directionalLights[16];
PointLight pointLights[128];
PointLight pointLights[64];
SpotLight spotLights[128];

uint numDirectionalLights;
Expand Down
2 changes: 1 addition & 1 deletion engine/src/render/deferred_shading/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ namespace
glm::vec4 ambientLight;

PerDirectionalLight directionalLights[16];
PerPointLight pointLights[128];
PerPointLight pointLights[64];
PerSpotLight spotLights[128];

glm::uint numDirectionalLights{0};
Expand Down

0 comments on commit f9b9304

Please sign in to comment.