render_order#

property Grids.render_order: float#

Per-object rendering priority used to fine-tune the draw order within a render queue.

Objects with higher render_order values are rendered later than those with lower values. This affects both opaque and transparent objects and can be used to resolve z-fighting, or control draw order beyond automatic depth sorting.

If the object is part of a Group, the group’s render_order is considered first (that is the group_order of the object).

The order in wich objects are rendered is:
  1. the material.render_queue.

  2. the ob.parent.render_order (if isinstance(ob.parent, gfx.Group)).

  3. the ob.render_order.

  4. the distance to camera (if renderer.sort_objects==True).

  5. the position of the object in the scene graph.

Also see material.render_queue.