Skip to content

Commit f95a5f5

Browse files
committed
increase dummy data size
1 parent 2bb7174 commit f95a5f5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

examples/bevy_egui.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ fn jet_colormap(value: f32) -> (f32, f32, f32) {
4040
fn generate_dummy_data() -> (Vec<InstanceData>, f32, f32, f32) {
4141
let mut instances = vec![];
4242

43-
let grid_width = 12;
44-
let grid_height = 12;
45-
let grid_depth = 12;
43+
let grid_width = 30;
44+
let grid_height = 30;
45+
let grid_depth = 30;
4646
let cube_width = 1.0;
4747
let cube_height = 1.0;
4848
let cube_depth = 1.0;
@@ -163,7 +163,7 @@ fn voxel_plot_setup(
163163
target: RenderTarget::Image(image_handle.clone()),
164164
..default()
165165
},
166-
Transform::from_translation(Vec3::new(-50.0, 0.0, 15.0))
166+
Transform::from_translation(Vec3::new(0.0, -150.0, 15.0))
167167
.looking_at(Vec3::ZERO, Vec3::Y),
168168
PanOrbitCamera::default(),
169169
first_pass_layer,

examples/bevy_pan_orbit_camera.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ fn jet_colormap(value: f32) -> (f32, f32, f32) {
2020
fn generate_dummy_data() -> (Vec<InstanceData>, f32, f32, f32) {
2121
let mut instances = vec![];
2222

23-
let grid_width = 12;
24-
let grid_height = 12;
25-
let grid_depth = 12;
23+
let grid_width = 30;
24+
let grid_height = 30;
25+
let grid_depth = 30;
2626
let cube_width = 1.0;
2727
let cube_height = 1.0;
2828
let cube_depth = 1.0;
@@ -96,7 +96,7 @@ fn voxel_plot_setup(mut commands: Commands, mut meshes: ResMut<Assets<Mesh>>) {
9696

9797
// camera
9898
commands.spawn((
99-
Transform::from_translation(Vec3::new(0.0, -50.0, 0.0)),
99+
Transform::from_translation(Vec3::new(0.0, -150.0, 0.0)),
100100
PanOrbitCamera::default(),
101101
));
102102
}

0 commit comments

Comments
 (0)