Skip to content

Commit

Permalink
Make floors less transparent by default
Browse files Browse the repository at this point in the history
Signed-off-by: Michael X. Grey <[email protected]>
  • Loading branch information
mxgrey committed Aug 7, 2023
1 parent 7845a1d commit 7b559d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rmf_site_format/src/layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ impl Default for GlobalFloorVisibility {
}
}

// Semi transparency for floors, more transparent than drawings to make them hidden
pub const DEFAULT_FLOOR_SEMI_TRANSPARENCY: f32 = 0.2;
// Semi transparency for floors, less transparent than drawings to make it clear
// where floors have been drawn.
pub const DEFAULT_FLOOR_SEMI_TRANSPARENCY: f32 = 0.7;
fn is_default_floor_semi_transparency(value: &f32) -> bool {
*value == DEFAULT_FLOOR_SEMI_TRANSPARENCY
}
Expand Down

0 comments on commit 7b559d9

Please sign in to comment.