Skip to content

Commit 8272c41

Browse files
Fix the index values in the comments (#21276)
Fix the index values in the comments.
1 parent 227c222 commit 8272c41

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/2d/bloom_2d.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,31 @@ fn setup(
2626
clear_color: ClearColorConfig::Custom(Color::BLACK),
2727
..default()
2828
},
29-
Tonemapping::TonyMcMapface, // 2. Using a tonemapper that desaturates to white is recommended
30-
Bloom::default(), // 3. Enable bloom for the camera
29+
Tonemapping::TonyMcMapface, // 1. Using a tonemapper that desaturates to white is recommended
30+
Bloom::default(), // 2. Enable bloom for the camera
3131
DebandDither::Enabled, // Optional: bloom causes gradients which cause banding
3232
));
3333

3434
// Sprite
3535
commands.spawn(Sprite {
3636
image: asset_server.load("branding/bevy_bird_dark.png"),
37-
color: Color::srgb(5.0, 5.0, 5.0), // 4. Put something bright in a dark environment to see the effect
37+
color: Color::srgb(5.0, 5.0, 5.0), // 3. Put something bright in a dark environment to see the effect
3838
custom_size: Some(Vec2::splat(160.0)),
3939
..default()
4040
});
4141

4242
// Circle mesh
4343
commands.spawn((
4444
Mesh2d(meshes.add(Circle::new(100.))),
45-
// 4. Put something bright in a dark environment to see the effect
45+
// 3. Put something bright in a dark environment to see the effect
4646
MeshMaterial2d(materials.add(Color::srgb(7.5, 0.0, 7.5))),
4747
Transform::from_translation(Vec3::new(-200., 0., 0.)),
4848
));
4949

5050
// Hexagon mesh
5151
commands.spawn((
5252
Mesh2d(meshes.add(RegularPolygon::new(100., 6))),
53-
// 4. Put something bright in a dark environment to see the effect
53+
// 3. Put something bright in a dark environment to see the effect
5454
MeshMaterial2d(materials.add(Color::srgb(6.25, 9.4, 9.1))),
5555
Transform::from_translation(Vec3::new(200., 0., 0.)),
5656
));

0 commit comments

Comments
 (0)