forked from Dynamitos/Seele
Reverting normal cone introduction
This commit is contained in:
1 parent
e233fb9c5b
commit
c409a3acd0
8 files changed
+53
-56
No files matched your search
@@ -35,13 +35,13 @@ struct Frustum
|
||||
Plane basePlane;
|
||||
bool pointInside(float3 point)
|
||||
{
|
||||
if (dot(basePlane.n, point) + basePlane.d < 0.0f)
|
||||
if (dot(basePlane.n, point) + basePlane.d > 0.0f)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
for(int p = 0; p < 4; ++p)
|
||||
{
|
||||
if(dot(sides[p].n, point) + sides[p].d < 0.0f)
|
||||
if(dot(sides[p].n, point) + sides[p].d > 0.0f)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user