public bool CanSee(Renderable r) { return(Frustum.Contains(r.AABB)); }
public void UpdateProjectionMatrix() { ProjectionMatrix = Matrix4.CreatePerspectiveFieldOfView(MathHelper.DegreesToRadians(Fov), AspectRatio, NearClip, FarClip); Frustum?.Update(Position, Front, Right, Up, Fov, AspectRatio, NearClip, FarClip); }
public bool CanSee(MapObject o) { return(Frustum.Contains(o.Aabb)); }