Skip to content

Commit 18a6a9e

Browse files
committed
review comments
1 parent 44fd5d2 commit 18a6a9e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/bevy_render/src/view/visibility/render_groups.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ entity.insert(groups);
251251
let mut groups = RenderGroups::from(0);
252252
groups.add(RenderLayer(1);
253253
entity.insert(groups);
254+
255+
// Option 3: manual
256+
let groups = RenderGroups::from(RenderLayers::from_layers(&[0, 1]));
257+
entity.insert(groups);
254258
```
255259
///
256260
/// Similarly, if an entity without [`RenderGroups`] inherits from an entity with [`PropagateRenderGroups`] that
@@ -273,7 +277,7 @@ impl RenderGroups {
273277
}
274278
}
275279

276-
/// Makes a new `RenderGroups` with just a camera.
280+
/// Makes a new `RenderGroups` with just a camera and no [`RenderLayers`].
277281
pub fn new_with_camera(camera: Entity) -> Self {
278282
Self {
279283
layers: RenderLayers::empty(),

0 commit comments

Comments
 (0)