Lighting is broken again

This commit is contained in:
Dynamitos
2024-02-20 21:07:17 +01:00
parent 97d96a6bc1
commit 2480529dbc
11 changed files with 52 additions and 53 deletions
-5
View File
@@ -36,13 +36,8 @@ struct Plane
struct Frustum
{
Plane sides[4];
Plane basePlane;
bool pointInside(float3 point)
{
if (!basePlane.pointInside(point))
{
return false;
}
for(int p = 0; p < 4; ++p)
{
if(!sides[p].pointInside(point))