Shaders are not compiling anymore...

This commit is contained in:
Dynamitos
2023-12-02 10:55:00 +01:00
parent 9114a6f252
commit 6c156d3bc2
23 changed files with 190 additions and 148 deletions
+4 -3
View File
@@ -35,14 +35,15 @@ struct Frustum
Plane basePlane;
bool pointInside(float3 point)
{
if (dot(basePlane.n, point) + basePlane.d < 0)
float result = dot(basePlane.n, point) + basePlane.d;
if (0.0f > result)
{
return false;
}
for(int p = 0; p < 4; ++p)
{
float result = dot(sides[p].n, point) + sides[p].d;
if(result < 0)
result = dot(sides[p].n, point) + sides[p].d;
if(0.0f > result)
{
return false;
}