egui/examples/custom_3d_three-d
Asger Nyman Christiansen 3eccd341ad
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.
2022-08-02 17:31:15 +02:00
..
src Add depth buffer in native 3D example (#1878) 2022-08-02 17:31:15 +02:00
Cargo.toml Update MSRV to Rust 1.61.0 (#1846) 2022-07-26 16:50:53 +02:00
README.md Move examples out of eframe/examples into examples/ (#1486) 2022-04-13 16:13:24 +02:00

This demo shows how to embed 3D rendering using three-d in eframe.

Any 3D library built on top of glow can be used in eframe.

Alternatively you can render 3D stuff to a texture and display it using [egui::Ui::image].

If you are content of having egui sit on top of a 3D background, take a look at:

cargo run -p custom_3d_three-d