I'm trying to add support for the output of SDF Modeller in my raymarching engin...

@evilpaul_atebit@icosahedron.website

I'm trying to add support for the output of SDF Modeller in my raymarching engine. The modeller uses a weird "uber primitive" to define cubes. This primitive supports some nice rounding and bevelling and some other stuff.

I looked at their shaders and copied the maths (translating from metal to wgsl in the process) but something is wrong and I get these single sided shells when, for example, I start subtracting shapes. Everything works fine with spheres.. just not this "uber primitive".

Anyone have any experience that could help here? I'm *sure* I saw a blog once describing such a primitive but I cannot find it. Maybe that would help me understand where Im going wrong.

The signature looks like this:
```
float sdf_uberprim(float3 p, float4 s, float3 r)
```