1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Add depth buffer in native 3D example (#1878)

The `custom_3d_three-d` example does not enable a depth buffer since it is only rendering a triangle. However, if it is used as a starting point for other projects, it is highly likely that a depth buffer is actually needed, therefore I propose to enable it by default.
Also see [this](https://github.com/asny/three-d/issues/268) issue for full context.
This commit is contained in:
Asger Nyman Christiansen
2022-08-02 17:31:15 +02:00
committed by GitHub
parent 10788ccc92
commit 3eccd341ad

View File

@@ -7,6 +7,7 @@ fn main() {
initial_window_size: Some(egui::vec2(550.0, 610.0)),
multisampling: 8,
renderer: eframe::Renderer::Glow,
depth_buffer: 32,
..Default::default()
};
eframe::run_native(