RenderLayers

RenderLayers

  1. smallvec::SmallVec<[u64; 1]>

Description

Describes which rendering layers an entity belongs to.

Cameras with this component will only render entities with intersecting layers.

Entities may belong to one or more layers, or no layer at all.

The [Default] instance of RenderLayers contains layer 0, the first layer.

An entity with this component without any layers is invisible.

Entities without this component belong to layer 0.

Functions