Skip to content

Commit

Permalink
Add documents to marker components.
Browse files Browse the repository at this point in the history
  • Loading branch information
cryscan committed Mar 10, 2022
1 parent d6aee3c commit abab5b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/city.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ fn scene_update(
mut done: Local<bool>,
) {
if !*done {
// Rendering GI for those two meshes are extremely slow, so disable them in tracing
let names = vec![
Name::new("CityTree_T_Leaves_D_0"),
Name::new("Tree_T_Leaves_D_0"),
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,11 @@ pub enum VoxelConeTracingSystems {
QueueTracingBindGroups,
}

/// Marker component for meshes not casting GI.
#[derive(Component)]
pub struct NotGiCaster;

/// Marker component for meshes not receiving GI.
#[derive(Component)]
pub struct NotGiReceiver;

Expand Down

0 comments on commit abab5b3

Please sign in to comment.