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