Example #1
0
File: Camera.cs Project: zhuowp/ge
 private void UpdateViewFrustum()
 {
     Veldrid.BoundingFrustum frustum = new Veldrid.BoundingFrustum(_viewProvider.Data * _projectionProvider.Data);
     _gs.SetViewFrustum(ref frustum);
 }
Example #2
0
 public void GetContainedObjects(BoundingFrustum frustum, List <T> results, Func <T, bool> filter)
 {
     _currentRoot.GetContainedObjects(ref frustum, results, filter);
 }
Example #3
0
 public static void FrustumContainsSphere(BoundingFrustum frustum, BoundingSphere sphere, ContainmentType expected)
 {
     Assert.Equal(expected, frustum.Contains(sphere));
 }
Example #4
0
 public void GetContainedObjects(BoundingFrustum frustum, List <T> results)
 {
     _currentRoot.GetContainedObjects(ref frustum, results);
 }
Example #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);
 }