mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -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:
committed by
GitHub
parent
10788ccc92
commit
3eccd341ad
@@ -7,6 +7,7 @@ fn main() {
|
|||||||
initial_window_size: Some(egui::vec2(550.0, 610.0)),
|
initial_window_size: Some(egui::vec2(550.0, 610.0)),
|
||||||
multisampling: 8,
|
multisampling: 8,
|
||||||
renderer: eframe::Renderer::Glow,
|
renderer: eframe::Renderer::Glow,
|
||||||
|
depth_buffer: 32,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
eframe::run_native(
|
eframe::run_native(
|
||||||
|
|||||||
Reference in New Issue
Block a user