Don't draw the floor if the background is transparent

This commit is contained in:
Alan Jeffrey 2019-04-11 11:19:18 -05:00
parent 4e6bbf59ba
commit e11f5646ab
1 changed files with 4 additions and 0 deletions

View File

@ -487,6 +487,10 @@ impl<W> DemoApp<W> where W: Window {
RenderTransform::Perspective(perspective) => perspective,
};
if self.ui.background_color == BackgroundColor::Transparent {
return;
}
let ground_scale = self.scene_view_box.max_x() * 2.0;
let mut base_transform = perspective.transform;