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
+2 -2
View File
@@ -39,13 +39,13 @@ struct Frustum
Plane basePlane;
bool pointInside(float3 point)
{
if (basePlane.pointInside(point))
if (!basePlane.pointInside(point))
{
return false;
}
for(int p = 0; p < 4; ++p)
{
if(sides[p].pointInside(point))
if(!sides[p].pointInside(point))
{
return false;
}