示例#1
0
 public bool CanSee(Renderable r)
 {
     return(Frustum.Contains(r.AABB));
 }
示例#2
0
        public void UpdateProjectionMatrix()
        {
            ProjectionMatrix = Matrix4.CreatePerspectiveFieldOfView(MathHelper.DegreesToRadians(Fov), AspectRatio, NearClip, FarClip);

            Frustum?.Update(Position, Front, Right, Up, Fov, AspectRatio, NearClip, FarClip);
        }
示例#3
0
 public bool CanSee(MapObject o)
 {
     return(Frustum.Contains(o.Aabb));
 }