private void UpdateViewFrustum() { Veldrid.BoundingFrustum frustum = new Veldrid.BoundingFrustum(_viewProvider.Data * _projectionProvider.Data); _gs.SetViewFrustum(ref frustum); }
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)); }
public void GetContainedObjects(BoundingFrustum frustum, List <T> results) { _currentRoot.GetContainedObjects(ref frustum, results); }
/// <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); }