More light culling fixes

This commit is contained in:
Dynamitos
2024-02-02 09:42:47 +01:00
parent 18d22aeb4f
commit 829c4937c0
4 changed files with 18 additions and 10 deletions
+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))