Exemple #1
0
 private void UpdateViewFrustum()
 {
     Veldrid.BoundingFrustum frustum = new Veldrid.BoundingFrustum(_viewProvider.Data * _projectionProvider.Data);
     _gs.SetViewFrustum(ref frustum);
 }
Exemple #2
0
 public void GetContainedObjects(BoundingFrustum frustum, List <T> results, Func <T, bool> filter)
 {
     _currentRoot.GetContainedObjects(ref frustum, results, filter);
 }
 public static void FrustumContainsSphere(BoundingFrustum frustum, BoundingSphere sphere, ContainmentType expected)
 {
     Assert.Equal(expected, frustum.Contains(sphere));
 }
Exemple #4
0
 public void GetContainedObjects(BoundingFrustum frustum, List <T> results)
 {
     _currentRoot.GetContainedObjects(ref frustum, results);
 }
Exemple #5
0
 /// <summary>
 /// Returns a value indicating whether this RenderItem is culled based on the given visible frustum.
 /// </summary>
 public bool Cull(ref BoundingFrustum visibleFrustum)
 {
     return(false);
 }