protected virtual OrderKey OnUpdateRenderOrderKey() { return(OrderKey.Create(RenderOrder, 0)); }
protected override OrderKey OnUpdateRenderOrderKey() { return(OrderKey.Create(RenderOrder, materialVariable == null ? (ushort)0 : materialVariable.ID)); }
private void UpdateRenderOrderKey(RenderContext context) { //var dist = Math.Abs((BoundsSphereWithTransform.Center - context.Camera.Position).Length() - BoundsSphereWithTransform.Radius); //RenderOrderKey = OrderKey.Create(RenderOrder, dist); RenderOrderKey = OrderKey.Create(RenderOrder, 0); }