protected virtual OrderKey OnUpdateRenderOrderKey()
 {
     return(OrderKey.Create(RenderOrder, 0));
 }
Пример #2
0
 protected override OrderKey OnUpdateRenderOrderKey()
 {
     return(OrderKey.Create(RenderOrder, materialVariable == null ? (ushort)0 : materialVariable.ID));
 }
Пример #3
0
 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);
 }