You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_An implicit surface defined compositionally, raymarched, and shaded entirely in Rust_
567
+
568
+
Announcing [rust-gpu-sdf], by [@Shfty]; a `no-std` signed distance field library designed for use on both CPU and GPU.
569
+
570
+
[Signed distance fields](https://en.wikipedia.org/wiki/Signed_distance_function) are a powerful computational tool
571
+
that allow a surface to be represented by a function from position to distance.
572
+
This has [intuitive applications](https://iquilezles.org/articles/raymarchingdf/) in various domains such as rendering, collision, meshing, and volume modeling,
573
+
providing the means to represent analytically smooth geometry, dynamic morphing (as pictured),
574
+
and various other effects that would traditionally require specialized tools to model.
575
+
576
+
[rust-gpu-sdf] aims to enumerate this domain to the fullest extent allowed by Rust's type system,
577
+
lifting its traditionally monolithic implementation style into a set of intuitive composable operators,
578
+
and leveraging a natural synergy with functional programming to provide powerful compositional tools.
579
+
580
+
Contrary to its working title, [rust-gpu-sdf] is actually [rust-gpu]-agnostic, so can be used anywhere Rust can;
581
+
it's presently named as such due to being built as the primary consumer of [bevy-rust-gpu],
582
+
with a view to providing a performant and compositional way to compile SDFs into SPIR-V for rendering on the GPU.
583
+
584
+
It's presently in a heavy-development prerelease state, so watch this space!
0 commit comments