Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
tychedelia committed Nov 18, 2024
1 parent af0ba4d commit bcdb422
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions examples/stress_tests/many_cubes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,17 +450,6 @@ fn move_camera(
camera_transform.rotate_x(delta);
}

fn update_materials(
mut materials: ResMut<Assets<StandardMaterial>>,
) {
let mut color_rng = ChaCha8Rng::seed_from_u64(42);
let mut texture_rng = ChaCha8Rng::seed_from_u64(42);
for (_, material) in materials.iter_mut() {
material.base_color = Color::srgb_u8(color_rng.gen(), color_rng.gen(), color_rng.gen());
material.base_color_texture = None;
}
}

// System for printing the number of meshes on every tick of the timer
fn print_mesh_count(
time: Res<Time>,
Expand Down

0 comments on commit bcdb422

Please sign in to comment.