Trying new meshlet gen approach

This commit is contained in:
Dynamitos
2024-04-05 10:41:59 +02:00
parent 7eedaf61ba
commit 505e7d6547
19 changed files with 219 additions and 216 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ struct Plane
float d;
bool pointInside(float3 point)
{
return dot(n, point) - d < 0.0f;
return dot(n, point) - d > 0.0f;
}
};
@@ -49,7 +49,7 @@ struct Frustum
{
for(int p = 0; p < 4; ++p)
{
if(sides[p].pointInside(point))
if(!sides[p].pointInside(point))
{
return false;
}