Don't draw the floor if the background is transparent
This commit is contained in:
parent
4e6bbf59ba
commit
e11f5646ab
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue