From 3eccd341ad8715bfe500c22824e04c2b7b3e4b3b Mon Sep 17 00:00:00 2001 From: Asger Nyman Christiansen Date: Tue, 2 Aug 2022 17:31:15 +0200 Subject: [PATCH] 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. --- examples/custom_3d_three-d/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/custom_3d_three-d/src/main.rs b/examples/custom_3d_three-d/src/main.rs index 1e5a5412..0ca9eb58 100644 --- a/examples/custom_3d_three-d/src/main.rs +++ b/examples/custom_3d_three-d/src/main.rs @@ -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(