More light culling fixes

This commit is contained in:
Dynamitos committed 2024-02-02 09:42:47 +01:00
1 parent 18d22aeb4f
commit 829c4937c0
4 files changed
+18 -10

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ void cullLights(ComputeShaderInput in)
{
PointLight light = pLightEnv.pointLights[i];
//TODO: why doesn't this check go through?
if(light.insideFrustum(groupFrustum, nearClipVS, maxDepthVS))
if(light.insideFrustum(groupFrustum, nearClipVS))
{
tAppendLight(i);
if(!light.insidePlane(minPlane))