Removing limit for point lights

This commit is contained in:
Dynamitos
2024-02-01 17:08:13 +01:00
parent f9a89f6592
commit 36aec0fa06
8 changed files with 76 additions and 16 deletions
+1 -3
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, maxDepthVS))
{
tAppendLight(i);
if(!light.insidePlane(minPlane))
@@ -131,6 +131,4 @@ void cullLights(ComputeShaderInput in)
{
pCullingParams.tLightIndexList[tLightIndexStartOffset + k] = tLightList[k];
}
}