Skip to content

Commit

Permalink
Improve pick geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
asny committed Jan 16, 2025
1 parent 0bd6d3b commit 27b835d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/picking/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub async fn run() {
PhysicalMaterial::new_opaque(
&context,
&CpuMaterial {
albedo: Srgba::new(100, 100, 100, 0),
albedo: Srgba::new(255, 255, 0, 255),
..Default::default()
},
),
Expand Down Expand Up @@ -115,7 +115,7 @@ pub async fn run() {
monkey.into_iter().chain(&cone).chain(&instanced_mesh),
) {
pick_mesh.set_transformation(
Mat4::from_translation(pick.position) * Mat4::from_scale(0.1),
Mat4::from_translation(pick.position) * Mat4::from_scale(0.3),
);
match pick.geometry_id {
0 => {
Expand Down

0 comments on commit 27b835d

Please sign in to comment.