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);
 }