egui/examples/custom_3d_three-d
ItsEthra 4d1e858a52
Use total_cmp for clamping drag value in order to avoid floating point ambiguities (#2213)
* Use total_cmp for clamping DragValue

* Added test for clamping

* Increase MSRV in all crates

* Increased rust version for github actions and lib.rs

* Inversed ranges are now working properply with clamp_to_range

* Added more tests
2022-11-02 19:38:39 +01:00
..
src Make eframe::App::as_any_mut optional to implement (#2061) 2022-09-20 13:58:55 +02:00
Cargo.toml Use total_cmp for clamping drag value in order to avoid floating point ambiguities (#2213) 2022-11-02 19:38:39 +01:00
index.html Improve custom_3d_three-d example (#1923) 2022-08-17 21:33:34 +02:00
README.md Improve custom_3d_three-d example (#1923) 2022-08-17 21:33:34 +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
wasm-pack build examples/custom_3d_three-d --target web